diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2016-05-12 16:55:58 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2016-05-25 16:06:08 +0200 |
commit | b6163183276470039f3a2a2094d1a6224c272f28 (patch) | |
tree | d45ec52cb1af52cdb35e3323ba4ed00e7c8e0184 /apps/user_ldap/lib/Wizard.php | |
parent | db2e9df5f000b129e9dad2ce801baada0a17a8a4 (diff) | |
download | nextcloud-server-b6163183276470039f3a2a2094d1a6224c272f28.tar.gz nextcloud-server-b6163183276470039f3a2a2094d1a6224c272f28.zip |
Fix several minor issues
Diffstat (limited to 'apps/user_ldap/lib/Wizard.php')
-rw-r--r-- | apps/user_ldap/lib/Wizard.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/user_ldap/lib/Wizard.php b/apps/user_ldap/lib/Wizard.php index f8c82a29701..f71d5af2c49 100644 --- a/apps/user_ldap/lib/Wizard.php +++ b/apps/user_ldap/lib/Wizard.php @@ -34,6 +34,7 @@ namespace OCA\User_LDAP; use OC\ServerNotAvailableException; class Wizard extends LDAPUtility { + /** @var \OCP\IL10N */ static protected $l; protected $access; protected $cr; @@ -1033,12 +1034,12 @@ class Wizard extends LDAPUtility { $host = $this->configuration->ldapHost; $hostInfo = parse_url($host); if(!$hostInfo) { - throw new \Exception($this->l->t('Invalid Host')); + throw new \Exception(self::$l->t('Invalid Host')); } \OCP\Util::writeLog('user_ldap', 'Wiz: Attempting to connect ', \OCP\Util::DEBUG); $cr = $this->ldap->connect($host, $port); if(!is_resource($cr)) { - throw new \Exception($this->l->t('Invalid Host')); + throw new \Exception(self::$l->t('Invalid Host')); } \OCP\Util::writeLog('user_ldap', 'Wiz: Setting LDAP Options ', \OCP\Util::DEBUG); |