1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 21:57:51 +02:00

bugfix - multilangauge defs were not being converted in category drop-down menu.

This commit is contained in:
CaMer0n
2007-02-07 18:48:27 +00:00
parent b172a85316
commit 94b3fceb1d

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/e107_admin/newspost.php,v $ | $Source: /cvs_backup/e107_0.8/e107_admin/newspost.php,v $
| $Revision: 1.4 $ | $Revision: 1.5 $
| $Date: 2007-01-20 15:58:47 $ | $Date: 2007-02-07 18:48:27 $
| $Author: mrpete $ | $Author: e107coders $
+---------------------------------------------------------------+ +---------------------------------------------------------------+
*/ */
@@ -419,15 +419,18 @@ class newspost {
<td style='width:20%' class='forumheader3'>".NWSLAN_6.": </td> <td style='width:20%' class='forumheader3'>".NWSLAN_6.": </td>
<td style='width:80%' class='forumheader3'>"; <td style='width:80%' class='forumheader3'>";
if (!$sql->db_Select("news_category")) { if (!$sql->db_Select("news_category"))
{
$text .= NWSLAN_10; $text .= NWSLAN_10;
} else { }
else
{
$text .= "\t<select name='cat_id' class='tbox'>\n";
$text .= " while (list($cat_id, $cat_name, $cat_icon) = $sql->db_Fetch())
<select name='cat_id' class='tbox'>"; {
$sel = ($_POST['cat_id'] == $cat_id) ? "selected='selected'" : "";
while (list($cat_id, $cat_name, $cat_icon) = $sql->db_Fetch()) { $text .= "<option value='$cat_id' {$sel}>".$tp->toHTML($cat_name,FALSE,"defs")."</option>\n";
$text .= ($_POST['cat_id'] == $cat_id ? "<option value='$cat_id' selected='selected'>".$cat_name."</option>" : "<option value='$cat_id'>".$cat_name."</option>");
} }
$text .= "</select>"; $text .= "</select>";
} }