diff options
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/plugins.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/engine/lib/plugins.php b/engine/lib/plugins.php index 2986b65e5..0a373457e 100644 --- a/engine/lib/plugins.php +++ b/engine/lib/plugins.php @@ -590,7 +590,7 @@ */
function enable_plugin($plugin, $site_guid = 0)
{
- global $CONFIG;
+ global $CONFIG, $ENABLED_PLUGINS_CACHE;
$plugin = sanitise_string($plugin);
$site_guid = (int) $site_guid;
@@ -613,7 +613,8 @@ $new_enabled[] = $plugin;
$new_enabled = array_unique($new_enabled);
- $return = $site->setMetaData('enabled_plugins', $new_enabled);
+ $return = $site->setMetaData('enabled_plugins', $new_enabled); + $ENABLED_PLUGINS_CACHE = $new_enabled;
return $return;
}
@@ -626,7 +627,7 @@ */
function disable_plugin($plugin, $site_guid = 0)
{
- global $CONFIG;
+ global $CONFIG, $ENABLED_PLUGINS_CACHE;
$plugin = sanitise_string($plugin);
$site_guid = (int) $site_guid;
@@ -644,7 +645,8 @@ if ($plugin != $plug)
$new_enabled[] = $plug;
- $return = $site->setMetaData('enabled_plugins', $new_enabled);
+ $return = $site->setMetaData('enabled_plugins', $new_enabled); + $ENABLED_PLUGINS_CACHE = $new_enabled;
return $return;
}
|