mirror of
https://github.com/e107inc/e107.git
synced 2025-08-10 16:46:50 +02:00
Forum upgrade improvements. Tested and appears to be functional.
This commit is contained in:
@@ -49,7 +49,11 @@ class forum_setup
|
||||
*/
|
||||
function upgrade_required()
|
||||
{
|
||||
return false; // true to trigger an upgrade alert, and false to not.
|
||||
if(!e107::getDb()->field('forum','forum_thread'))
|
||||
{
|
||||
return true; // true to trigger an upgrade alert, and false to not.
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -57,7 +61,7 @@ class forum_setup
|
||||
{
|
||||
//Redirect upgrade to customized upgrade routine
|
||||
|
||||
// e107::getRedirect()->redirect(e_PLUGIN.'forum/forum_update.php');
|
||||
e107::getRedirect()->redirect(e_PLUGIN.'forum/forum_update.php');
|
||||
|
||||
//header('Location: '.e_PLUGIN.'forum/forum_update.php');
|
||||
}
|
||||
|
Reference in New Issue
Block a user