mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
Issue #1336 and Forum menu prefs upgrade and newforumpost_menu fix. e_menu.php pending.
This commit is contained in:
@@ -99,9 +99,11 @@ if(!deftrue('OLD_FORUMADMIN'))
|
||||
{
|
||||
$this->adminMenu['opt3'] = array('divider'=>true);
|
||||
$this->adminMenu['main/update'] = array('caption'=>"Redo v1.x Forum Upgrade", 'perm'=>0, 'uri'=>'{e_PLUGIN}forum/forum_update.php');
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -258,6 +260,11 @@ if(!deftrue('OLD_FORUMADMIN'))
|
||||
require_once(e_PLUGIN.'forum/forum_class.php');
|
||||
$this->forumObj = new e107forum;
|
||||
|
||||
if(E107_DEBUG_LEVEL > 0) // check fpr legacy prefs in debug mode. Should normally be done during upgrade.
|
||||
{
|
||||
$this->forumObj->upgradeLegacyPrefs();
|
||||
}
|
||||
|
||||
|
||||
if (!empty($_POST['do_prune']) && !empty($_POST['prune_days']) && !empty($_POST['pruneForum']))
|
||||
{
|
||||
|
Reference in New Issue
Block a user