summaryrefslogtreecommitdiff
path: root/actions/pluginenable.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/pluginenable.php')
-rw-r--r--actions/pluginenable.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/actions/pluginenable.php b/actions/pluginenable.php
index 2dbb3e395..826874ae5 100644
--- a/actions/pluginenable.php
+++ b/actions/pluginenable.php
@@ -104,8 +104,8 @@ class PluginEnableAction extends Action
}
$this->plugin = $this->arg('plugin');
- $defaultPlugins = common_config('plugins', 'default');
- if (!array_key_exists($this->plugin, $defaultPlugins)) {
+ $pluginList = StatusNet::getPlugins();
+ if (!array_key_exists($this->plugin, $pluginList)) {
$this->clientError(_('No such plugin.'));
return false;
}
@@ -127,6 +127,7 @@ class PluginEnableAction extends Action
{
$key = 'disable-' . $this->plugin;
Config::save('plugins', $key, $this->overrideValue());
+ Config::save('plugin-list', $this->plugin, 1);
// @fixme this is a pretty common pattern and should be refactored down
if ($this->boolean('ajax')) {