aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/appinfo/install.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/user_ldap/appinfo/install.php')
-rw-r--r--apps/user_ldap/appinfo/install.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/user_ldap/appinfo/install.php b/apps/user_ldap/appinfo/install.php
index 43ec69a950b..09f9b412342 100644
--- a/apps/user_ldap/appinfo/install.php
+++ b/apps/user_ldap/appinfo/install.php
@@ -21,10 +21,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
-$state = OCP\Config::getSystemValue('ldapIgnoreNamingRules', 'doSet');
+$config = \OC::$server->getConfig();
+$state = $config->getSystemValue('ldapIgnoreNamingRules', 'doSet');
if($state === 'doSet') {
OCP\Config::setSystemValue('ldapIgnoreNamingRules', false);
}
-$helper = new \OCA\User_LDAP\Helper(\OC::$server->getConfig());
+$helper = new \OCA\User_LDAP\Helper($config);
$helper->setLDAPProvider();