mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 21:27:25 +02:00
Issue #949 - Always place child forum at the end of the list.
This commit is contained in:
@@ -296,7 +296,7 @@ if(deftrue('NEW_FORUMADMIN'))
|
|||||||
$sql = e107::getDb();
|
$sql = e107::getDb();
|
||||||
$parentOrder = $sql->retrieve('forum','forum_order','forum_id='.$new_data['forum_parent']." LIMIT 1");
|
$parentOrder = $sql->retrieve('forum','forum_order','forum_id='.$new_data['forum_parent']." LIMIT 1");
|
||||||
|
|
||||||
$new_data['forum_order'] = $parentOrder + 1;
|
$new_data['forum_order'] = $parentOrder + 50;
|
||||||
return $new_data;
|
return $new_data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user