diff options
author | Andreas Gohr <andi@splitbrain.org> | 2013-08-09 15:22:18 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2013-08-09 15:22:18 +0200 |
commit | 89275cfd7e4e8b88724a36ccf7ae7bd29342d494 (patch) | |
tree | c6a1c9964aa107a4a19f3100876fd5b38b6e1a88 /lib/plugins/extension/helper/extension.php | |
parent | 813d7e0910cdbb80dceef4d952adc551987c84e7 (diff) | |
download | rpg-89275cfd7e4e8b88724a36ccf7ae7bd29342d494.tar.gz rpg-89275cfd7e4e8b88724a36ccf7ae7bd29342d494.tar.bz2 |
added a first unit test
Diffstat (limited to 'lib/plugins/extension/helper/extension.php')
-rw-r--r-- | lib/plugins/extension/helper/extension.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/plugins/extension/helper/extension.php b/lib/plugins/extension/helper/extension.php index 6a152b169..88fb5e229 100644 --- a/lib/plugins/extension/helper/extension.php +++ b/lib/plugins/extension/helper/extension.php @@ -80,7 +80,11 @@ class helper_plugin_extension_extension extends DokuWiki_Plugin { public function isBundled() { if (!empty($this->remoteInfo['bundled'])) return $this->remoteInfo['bundled']; return in_array($this->base, - array('acl', 'info', 'extension', 'test', 'revert', 'popularity', 'config', 'plugin', 'safefnrecode', 'authplain')); + array('acl', 'info', 'extension', 'test', 'revert', 'popularity', + 'config', 'plugin', 'safefnrecode', 'authplain', 'testing', + 'template:dokuwiki', 'template:default' + ) + ); } /** @@ -107,6 +111,11 @@ class helper_plugin_extension_extension extends DokuWiki_Plugin { * @return bool If the extension is enabled */ public function isEnabled() { + global $conf; + if($this->isTemplate()){ + return ($conf['template'] == $this->getBase()); + } + /* @var Doku_Plugin_Controller $plugin_controller */ global $plugin_controller; return !$plugin_controller->isdisabled($this->base); |