From 95dc50c25ea9f4e060df1f11a4c0cc08adff97a6 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Wed, 28 Oct 2015 09:46:22 +0000 Subject: [PATCH] (auth, legacy) fix gettext on local auth issues --- src/etc/inc/auth.inc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/etc/inc/auth.inc b/src/etc/inc/auth.inc index 72c27f7e2..7b488ffbe 100644 --- a/src/etc/inc/auth.inc +++ b/src/etc/inc/auth.inc @@ -718,9 +718,12 @@ function authenticate_user($username, $password, $authcfg = NULL) { $authName = 'Local Database'; } else { $authName = $authcfg['name']; - if ($authcfg['type'] == 'ldap') { - // temporary fix, ldap handler doesn't do this init yet. - ldap_setup_caenv($authcfg); + if ($authcfg['type'] == 'local') { + // avoid gettext type issues on Local Database, authenticator should always be named "Local Database" + $authName = 'Local Database'; + } elseif ($authcfg['type'] == 'ldap') { + // temporary fix, ldap handler doesn't do this init yet. + ldap_setup_caenv($authcfg); } }