[geeklog-cvs] Geeklog-1.x/plugins/links functions.inc,1.85,1.86
Oliver
ospiess at qs1489.pair.com
Tue Sep 11 01:28:03 EDT 2007
Update of /usr/home/geeklog2/cvsroot/geeklog/Geeklog-1.x/plugins/links
In directory qs1489.pair.com:/tmp/cvs-serv31714/links
Modified Files:
functions.inc
Log Message:
fixing plugin upgrades
Index: functions.inc
===================================================================
RCS file: /usr/home/geeklog2/cvsroot/geeklog/Geeklog-1.x/plugins/links/functions.inc,v
retrieving revision 1.85
retrieving revision 1.86
diff -C2 -d -r1.85 -r1.86
*** functions.inc 29 Aug 2007 05:53:44 -0000 1.85
--- functions.inc 11 Sep 2007 05:28:01 -0000 1.86
***************
*** 728,739 ****
function plugin_upgrade_links ()
{
! global $_TABLES, $_LI_CONF, $_DB_dbms, $_CONF;
!
// the plugin needs these functions so complain when they doesn't exist
! if (!function_exists ('COM_truncate') ||
! !function_exists ('MBYTE_strpos')) {
return 3002;
}
-
// include SQL required for upgrade
$blockadmin_id = DB_GetItem ($_TABLES['groups'], 'grp_id', "grp_name='Block Admin'");
--- 728,736 ----
function plugin_upgrade_links ()
{
! global $_CONF, $_TABLES, $_LI_CONF, $_DB_dbms;
// the plugin needs these functions so complain when they doesn't exist
! if (!function_exists ('COM_truncate') || !function_exists ('MBYTE_strpos')) {
return 3002;
}
// include SQL required for upgrade
$blockadmin_id = DB_GetItem ($_TABLES['groups'], 'grp_id', "grp_name='Block Admin'");
***************
*** 743,752 ****
// get current version
$currentVersion = DB_getItem($_TABLES['plugins'],'pi_version',"pi_name='links'");
!
switch( $currentVersion ) {
case "1.0" :
case "1.0.1" :
-
// do DB changes:
--- 740,748 ----
// get current version
$currentVersion = DB_getItem($_TABLES['plugins'],'pi_version',"pi_name='links'");
! echo $currentVersion;
switch( $currentVersion ) {
case "1.0" :
case "1.0.1" :
// do DB changes:
***************
*** 839,843 ****
// update the version numbers
! DB_query ("UPDATE {$_TABLES['plugins']} SET pi_version = '{$_LI_CONF['version']}', pi_gl_version='" . VERSION . "' WHERE pi_name='links'");
break;
--- 835,839 ----
// update the version numbers
! DB_query ("UPDATE {$_TABLES['plugins']} SET pi_version = '{$_LI_CONF['version']}', pi_gl_version='1.5.0' WHERE pi_name='links'");
break;
More information about the geeklog-cvs
mailing list