Skip to content
Snippets Groups Projects
Commit c45608df authored by Adrian Lang's avatar Adrian Lang
Browse files

Honor conf[pluginmanager] again (closes FS#1856)

parent b17e20ac
No related branches found
No related tags found
No related merge requests found
......@@ -125,6 +125,7 @@ class Doku_Plugin_Controller {
}
function _populateMasterList() {
global $conf;
if ($dh = opendir(DOKU_PLUGIN)) {
while (false !== ($plugin = readdir($dh))) {
if ($plugin[0] == '.') continue; // skip hidden entries
......@@ -134,7 +135,9 @@ class Doku_Plugin_Controller {
// the plugin was disabled by rc2009-01-26
// disabling mechanism was changed back very soon again
// to keep everything simple we just skip the plugin completely
}elseif(@file_exists(DOKU_PLUGIN.$plugin.'/disabled')){
}elseif(@file_exists(DOKU_PLUGIN.$plugin.'/disabled') ||
($plugin === 'plugin' && isset($conf['pluginmanager']) &&
!$conf['pluginmanager'])){
$this->list_disabled[] = $plugin;
} else {
$this->list_enabled[] = $plugin;
......
......@@ -44,7 +44,7 @@ class admin_plugin_plugin extends DokuWiki_Admin_Plugin {
function admin_plugin_plugin() {
global $conf;
$this->disabled = (isset($conf['pluginmanager']) && ($conf['pluginmanager'] == 0));
$this->disabled = plugin_isdisabled('plugin');
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment