# HG changeset patch # User Dan # Date 1229989865 18000 # Node ID e6094f56f941ef5ccb93d37bbc352ee6d1b68463 # Parent e210589fb79d0419259d20bed3e3c7f7802d9112 Fixed a few bugs with plugin management and importing of old plugin metadata diff -r e210589fb79d -r e6094f56f941 includes/plugins.php --- a/includes/plugins.php Mon Dec 22 13:31:07 2008 -0500 +++ b/includes/plugins.php Mon Dec 22 18:51:05 2008 -0500 @@ -520,6 +520,7 @@ { global $db, $session, $paths, $template, $plugins; // Common objects global $lang; + global $cache; if ( defined('ENANO_DEMO_MODE') ) { @@ -621,6 +622,8 @@ endswitch; + $cache->purge('plugins'); + return $return; } @@ -738,6 +741,8 @@ endswitch; + $cache->purge('plugins'); + return $return; } @@ -961,6 +966,8 @@ endswitch; + $cache->purge('plugins'); + return $return; } diff -r e210589fb79d -r e6094f56f941 plugins/admin/PluginManager.php --- a/plugins/admin/PluginManager.php Mon Dec 22 13:31:07 2008 -0500 +++ b/plugins/admin/PluginManager.php Mon Dec 22 18:51:05 2008 -0500 @@ -275,8 +275,8 @@ if ( $row['config_value'] == '0' ) { $fn_db = $db->escape($plugin_filename); - $q = $db->sql_query('UPDATE ' . table_prefix . "plugins SET plugin_flags = plugin_flags | " . PLUGIN_DISABLED . " WHERE plugin_filename = '$fn_db';"); - if ( !$q ) + $e = $db->sql_query('UPDATE ' . table_prefix . "plugins SET plugin_flags = plugin_flags | " . PLUGIN_DISABLED . " WHERE plugin_filename = '$fn_db';"); + if ( !$e ) $db->die_json(); } }