From 296c16bdc03e2766fc22ebe5b755fefdb027f49b Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Thu, 1 Nov 2018 17:45:48 -0300 Subject: [PATCH] Fix 9086: Remove gettext() from all 'Local Databases' strings --- src/etc/inc/auth.inc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/etc/inc/auth.inc b/src/etc/inc/auth.inc index 78b9d69caa..f2df4b754d 100644 --- a/src/etc/inc/auth.inc +++ b/src/etc/inc/auth.inc @@ -1837,7 +1837,7 @@ function auth_get_authserver($name) { } } if ($name == "Local Database") { - return array("name" => gettext("Local Database"), "type" => "Local Auth", "host" => $config['system']['hostname']); + return array("name" => "Local Database", "type" => "Local Auth", "host" => $config['system']['hostname']); } } @@ -1853,7 +1853,7 @@ function auth_get_authserver_list() { } } - $list["Local Database"] = array("name" => gettext("Local Database"), "type" => "Local Auth", "host" => $config['system']['hostname']); + $list["Local Database"] = array("name" => "Local Database", "type" => "Local Auth", "host" => $config['system']['hostname']); return $list; } @@ -1953,12 +1953,12 @@ function session_auth() { $_SESSION['remoteauth'] = $remoteauth; if ($remoteauth) { if (empty($authcfg['type']) || ($authcfg['type'] == "Local Auth")) { - $_SESSION['authsource'] = gettext("Local Database"); + $_SESSION['authsource'] = "Local Database"; } else { - $_SESSION['authsource'] = strtoupper(gettext($authcfg['type'])) . "/{$authcfg['name']}"; + $_SESSION['authsource'] = strtoupper($authcfg['type']) . "/{$authcfg['name']}"; } } else { - $_SESSION['authsource'] = gettext('Local Database Fallback') ; + $_SESSION['authsource'] = 'Local Database Fallback'; } $_SESSION['Username'] = $_POST['usernamefld']; $_SESSION['user_radius_attributes'] = $attributes;