diff options
author | Bruno De Fraine <bruno@defraine.net> | 2009-02-03 20:43:07 +0100 |
---|---|---|
committer | Bruno De Fraine <bruno@defraine.net> | 2009-02-03 20:43:07 +0100 |
commit | 83d0d71b9f694269dca41083629e9c37f2ab14d0 (patch) | |
tree | ab360350f81c8ad766ab2d110dad0c204024e121 /inc | |
parent | 011dae358fbf830e5a0d90622542cdbaeb5b84f7 (diff) | |
download | rpg-83d0d71b9f694269dca41083629e9c37f2ab14d0.tar.gz rpg-83d0d71b9f694269dca41083629e9c37f2ab14d0.tar.bz2 |
fix disable plugin mechanism revert FS#1585
Ignore-this: bd7e66b737e8847373e071f0b23d96d7
The mechanism for disabling plugins was not reverted completely: there were
still references to the plugin.disabled directories in the
Doku_Plugin_Controller class, this patch fixes this.
darcs-hash:20090203194307-8a46b-4bb1c41e530edc9fde06ca61898a9a465d5b6d98.gz
Diffstat (limited to 'inc')
-rw-r--r-- | inc/plugincontroller.class.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/inc/plugincontroller.class.php b/inc/plugincontroller.class.php index 372ab4f17..670dcff5d 100644 --- a/inc/plugincontroller.class.php +++ b/inc/plugincontroller.class.php @@ -76,7 +76,7 @@ class Doku_Plugin_Controller { //try to load the wanted plugin file list($plugin,$component) = $this->_splitName($name); - $dir = !$this->isdisabled($plugin) ? $plugin : $plugin.'.disabled'; + $dir = $this->get_directory($plugin); $file = $component ? "$type/$component.php" : "$type.php"; if (!include_once(DOKU_PLUGIN."$dir/$file")) { @@ -110,7 +110,7 @@ class Doku_Plugin_Controller { } function get_directory($plugin) { - return $this->isdisabled($plugin) ? $plugin.'.disabled' : $plugin; + return $plugin; } function _populateMasterList() { @@ -137,7 +137,7 @@ class Doku_Plugin_Controller { $plugins = array(); foreach ($master_list as $plugin) { - $dir = $enabled ? $plugin : $plugin.'.disabled'; + $dir = $this->get_directory($plugin); if (@file_exists(DOKU_PLUGIN."$dir/$type.php")){ $plugins[] = $plugin; |