mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 06:07:32 +02:00
EONE-60 (Bug): Forum upgrade from plugin manager now redirects to custom upgrade procedure.
This commit is contained in:
@@ -2,16 +2,14 @@
|
|||||||
/*
|
/*
|
||||||
* e107 website system
|
* e107 website system
|
||||||
*
|
*
|
||||||
* Copyright (C) 2008-2009 e107 Inc (e107.org)
|
* Copyright 2008-2010 e107 Inc (e107.org)
|
||||||
* Released under the terms and conditions of the
|
* Released under the terms and conditions of the
|
||||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||||
*
|
*
|
||||||
* Custom forum install/uninstall/update routines
|
* Forum plugin version tools
|
||||||
*
|
*
|
||||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/forum/forum_setup.php,v $
|
* $URL$
|
||||||
* $Revision$
|
* $Id$
|
||||||
* $Date$
|
|
||||||
* $Author$
|
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -45,15 +43,16 @@ class forum_setup
|
|||||||
}*/
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function upgrade_pre($var)
|
||||||
|
{
|
||||||
|
//Redirect upgrade to customized upgrade routine
|
||||||
|
header('Location: '.e_PLUGIN.'forum/forum_update.php');
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
function upgrade_post($var)
|
function upgrade_post($var)
|
||||||
{
|
{
|
||||||
$sql = e107::getDb();
|
$sql = e107::getDb();
|
||||||
$mes = e107::getMessage();
|
$mes = e107::getMessage();
|
||||||
|
|
||||||
if(version_compare($var['current_plug']['plugin_version'], "1.2", "<"))
|
|
||||||
{
|
|
||||||
$qry = "ALTER TABLE #forum ADD forum_postclass TINYINT( 3 ) UNSIGNED DEFAULT '0' NOT NULL ;";
|
|
||||||
$sql->db_Select_gen($qry);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user