Skip to content

Commit

Permalink
Honor conf[pluginmanager] again (closes FS#1856)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianheine committed Feb 6, 2011
1 parent b17e20a commit c45608d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion inc/plugincontroller.class.php
Expand Up @@ -125,6 +125,7 @@ function get_directory($plugin) {
}

function _populateMasterList() {
global $conf;
if ($dh = opendir(DOKU_PLUGIN)) {
while (false !== ($plugin = readdir($dh))) {
if ($plugin[0] == '.') continue; // skip hidden entries
Expand All @@ -134,7 +135,9 @@ function _populateMasterList() {
// 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;
Expand Down
2 changes: 1 addition & 1 deletion lib/plugins/plugin/admin.php
Expand Up @@ -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');
}

/**
Expand Down

0 comments on commit c45608d

Please sign in to comment.