1
0
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:
Cameron
2013-03-10 18:43:44 -07:00
parent 6f8481e528
commit 859dcdb360
3 changed files with 151 additions and 122 deletions

View File

@@ -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');
}