mirror of
https://github.com/e107inc/e107.git
synced 2025-03-14 01:19:44 +01:00
bugfix - multilangauge defs were not being converted in category drop-down menu.
This commit is contained in:
parent
b172a85316
commit
94b3fceb1d
@ -11,9 +11,9 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_admin/newspost.php,v $
|
||||
| $Revision: 1.4 $
|
||||
| $Date: 2007-01-20 15:58:47 $
|
||||
| $Author: mrpete $
|
||||
| $Revision: 1.5 $
|
||||
| $Date: 2007-02-07 18:48:27 $
|
||||
| $Author: e107coders $
|
||||
+---------------------------------------------------------------+
|
||||
|
||||
*/
|
||||
@ -419,15 +419,18 @@ class newspost {
|
||||
<td style='width:20%' class='forumheader3'>".NWSLAN_6.": </td>
|
||||
<td style='width:80%' class='forumheader3'>";
|
||||
|
||||
if (!$sql->db_Select("news_category")) {
|
||||
if (!$sql->db_Select("news_category"))
|
||||
{
|
||||
$text .= NWSLAN_10;
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
$text .= "\t<select name='cat_id' class='tbox'>\n";
|
||||
|
||||
$text .= "
|
||||
<select name='cat_id' class='tbox'>";
|
||||
|
||||
while (list($cat_id, $cat_name, $cat_icon) = $sql->db_Fetch()) {
|
||||
$text .= ($_POST['cat_id'] == $cat_id ? "<option value='$cat_id' selected='selected'>".$cat_name."</option>" : "<option value='$cat_id'>".$cat_name."</option>");
|
||||
while (list($cat_id, $cat_name, $cat_icon) = $sql->db_Fetch())
|
||||
{
|
||||
$sel = ($_POST['cat_id'] == $cat_id) ? "selected='selected'" : "";
|
||||
$text .= "<option value='$cat_id' {$sel}>".$tp->toHTML($cat_name,FALSE,"defs")."</option>\n";
|
||||
}
|
||||
$text .= "</select>";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user