diff options
author | Andreas Gohr <gohr@cosmocode.de> | 2014-12-03 16:50:16 +0100 |
---|---|---|
committer | Andreas Gohr <gohr@cosmocode.de> | 2014-12-03 16:50:43 +0100 |
commit | 48b5d5e92851161ee3b3ebc7bf5b6ae6d1f0914d (patch) | |
tree | e704ffa4683848e99310636c1b7f63f501789404 /lib/plugins/extension/helper/list.php | |
parent | 4766c1f0aaafeb23d5026904b802078cf82ebbe1 (diff) | |
download | rpg-48b5d5e92851161ee3b3ebc7bf5b6ae6d1f0914d.tar.gz rpg-48b5d5e92851161ee3b3ebc7bf5b6ae6d1f0914d.tar.bz2 |
warn about enabled, but not used auth plugins
Diffstat (limited to 'lib/plugins/extension/helper/list.php')
-rw-r--r-- | lib/plugins/extension/helper/list.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/plugins/extension/helper/list.php b/lib/plugins/extension/helper/list.php index 9b1988d84..f7e6eb2ca 100644 --- a/lib/plugins/extension/helper/list.php +++ b/lib/plugins/extension/helper/list.php @@ -461,6 +461,7 @@ class helper_plugin_extension_list extends DokuWiki_Plugin { * @return string The HTML code */ function make_actions(helper_plugin_extension_extension $extension) { + global $conf; $return = ''; $errors = ''; @@ -492,6 +493,10 @@ class helper_plugin_extension_list extends DokuWiki_Plugin { $errors .= '<p class="permerror">'.$this->getLang('git').'</p>'; } + if ($extension->isEnabled() && in_array('Auth', $extension->getTypes()) && $conf['auth'] != $extension->getID()) { + $errors .= '<p class="permerror">'.$this->getLang('auth').'</p>'; + } + }else{ if (($canmod = $extension->canModify()) === true) { if ($extension->getDownloadURL()) { |