diff options
author | Guy Brand <gb@unistra.fr> | 2013-03-17 19:22:37 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2013-03-17 19:22:37 +0100 |
commit | e71b0ef705b86bb653fcae43e6845acbe6fd7fd2 (patch) | |
tree | 20cff9c4fc221efe5e2a0239db749fa0d148b10a /inc/auth.php | |
parent | 8b5e2fdbb74e3a04fb31fce01b4cd316fa1a1f40 (diff) | |
download | rpg-e71b0ef705b86bb653fcae43e6845acbe6fd7fd2.tar.gz rpg-e71b0ef705b86bb653fcae43e6845acbe6fd7fd2.tar.bz2 |
backward compatibility for old authtype settings
Diffstat (limited to 'inc/auth.php')
-rw-r--r-- | inc/auth.php | 13 |
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){ |