diff --git a/auth-ldap/authentication.php b/auth-ldap/authentication.php index 2f93de8..40d2475 100644 --- a/auth-ldap/authentication.php +++ b/auth-ldap/authentication.php @@ -433,7 +433,7 @@ function authenticate($username, $password=false, $errors=array()) { function getName() { $config = $this->config; list($__, $_N) = $config->translate(); - return $__(static::$name); + return $config->getName() ?: $__(static::$name); } function lookup($dn) { @@ -472,7 +472,7 @@ function __construct($config) { function getName() { $config = $this->config; list($__, $_N) = $config->translate(); - return $__(static::$name); + return $config->getName() ?: $__(static::$name); } function authenticate($username, $password=false, $errors=array()) {