Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-05-12 17:55:58 +0300
committerJoas Schilling <nickvergessen@owncloud.com>2016-05-25 17:06:08 +0300
commitb6163183276470039f3a2a2094d1a6224c272f28 (patch)
treed45ec52cb1af52cdb35e3323ba4ed00e7c8e0184 /apps/user_ldap/lib/Wizard.php
parentdb2e9df5f000b129e9dad2ce801baada0a17a8a4 (diff)
Fix several minor issues
Diffstat (limited to 'apps/user_ldap/lib/Wizard.php')
-rw-r--r--apps/user_ldap/lib/Wizard.php5
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);