summaryrefslogtreecommitdiff
path: root/inc/auth.php
diff options
context:
space:
mode:
authorGuy Brand <gb@unistra.fr>2013-03-17 19:22:37 +0100
committerAndreas Gohr <andi@splitbrain.org>2013-03-17 19:22:37 +0100
commite71b0ef705b86bb653fcae43e6845acbe6fd7fd2 (patch)
tree20cff9c4fc221efe5e2a0239db749fa0d148b10a /inc/auth.php
parent8b5e2fdbb74e3a04fb31fce01b4cd316fa1a1f40 (diff)
downloadrpg-e71b0ef705b86bb653fcae43e6845acbe6fd7fd2.tar.gz
rpg-e71b0ef705b86bb653fcae43e6845acbe6fd7fd2.tar.bz2
backward compatibility for old authtype settings
Diffstat (limited to 'inc/auth.php')
-rw-r--r--inc/auth.php13
1 files changed, 9 insertions, 4 deletions
diff --git a/inc/auth.php b/inc/auth.php
index 68b6b438d..0713ca6af 100644
--- a/inc/auth.php
+++ b/inc/auth.php
@@ -48,10 +48,15 @@ function auth_setup() {
// try to load auth backend from plugins
foreach ($plugin_controller->getList('auth') as $plugin) {
- if ($conf['authtype'] === $plugin) {
- $auth = $plugin_controller->load('auth', $plugin);
- break;
- }
+ if ($conf['authtype'] === $plugin) {
+ $auth = $plugin_controller->load('auth', $plugin);
+ break;
+ } elseif ('auth' . $conf['authtype'] === $plugin) {
+ // matches old auth backends (pre-Weatherwax)
+ $auth = $plugin_controller->load('auth', $plugin);
+ msg('Your authtype setting is deprecated. You must set $conf[\'authconfig\'] = ' . "auth" . $conf['authtype']
+ . ' in your config (see <a href="https://www.dokuwiki.org/auth">Authentication Backends</a>)',-1);
+ }
}
if(!isset($auth) || !$auth){