summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/appinfo/install.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-07-27 13:43:18 +0200
committerMorris Jobke <hey@morrisjobke.de>2017-07-27 13:43:18 +0200
commitc27498db7103aebac323c361007e0d8a2da16a34 (patch)
treecfe7bbb7b4abb89936ba9d35a70ef4f50d0c9213 /apps/user_ldap/appinfo/install.php
parent65ade4b6d5a942ff781dad5396387facc86a95ed (diff)
downloadnextcloud-server-c27498db7103aebac323c361007e0d8a2da16a34.tar.gz
nextcloud-server-c27498db7103aebac323c361007e0d8a2da16a34.zip
Use IConfig instead of static OCP\Config
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
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();