[geeklog-cvs] Geeklog-1.x/system lib-plugins.php,1.138,1.139
Blaine Lang
blaine at qs1489.pair.com
Sun Dec 30 11:34:47 EST 2007
Update of /cvsroot/geeklog/Geeklog-1.x/system
In directory qs1489.pair.com:/tmp/cvs-serv94139
Modified Files:
lib-plugins.php
Log Message:
Updated lib-plugins autouninstall function to also support removing the config table data
Update the staticpages plugin to now include an upgrade function that will set the default online config data to the current config.php settings for the plugin and then renames the config.php as it's no longer needed.
Still need to update the staticpages installer.
Index: lib-plugins.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/system/lib-plugins.php,v
retrieving revision 1.138
retrieving revision 1.139
diff -C2 -d -r1.138 -r1.139
*** lib-plugins.php 29 Dec 2007 15:04:27 -0000 1.138
--- lib-plugins.php 30 Dec 2007 16:34:45 -0000 1.139
***************
*** 48,52 ****
// Response codes for the service invocation PLG_invokeService()
! define('PLG_RET_OK', 0);
define('PLG_RET_ERROR', -1);
define('PLG_RET_PERMISSION_DENIED', -2);
--- 48,52 ----
// Response codes for the service invocation PLG_invokeService()
! define('PLG_RET_OK', 0);
define('PLG_RET_ERROR', -1);
define('PLG_RET_PERMISSION_DENIED', -2);
***************
*** 332,335 ****
--- 332,340 ----
}
+ // remove config table data for this plugin
+ COM_errorLog ("Attempting to remove config table records for group_name: $type", 1);
+ DB_query ("DELETE FROM {$_TABLES['conf_values']} WHERE group_name = '$type'");
+ COM_errorLog ('...success', 1);
+
// uninstall the plugin
COM_errorLog ('Attempting to unregister the $type plugin from Geeklog', 1);
***************
*** 2320,2324 ****
/**
* Returns true if the plugin supports webservices
! *
* @param string type The plugin type that is to be checked
*/
--- 2325,2329 ----
/**
* Returns true if the plugin supports webservices
! *
* @param string type The plugin type that is to be checked
*/
More information about the geeklog-cvs
mailing list