summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-01-13 14:25:04 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-01-13 14:25:04 +0100
commit8a41d05761a14292ab0457f4143bb84d237bbcbd (patch)
treef74f20625fd4e693f29431e39b7b2c69a9f06980 /apps/user_ldap
parent1faef0c459a51a025f73f7eee46e5607ee6eedf5 (diff)
downloadnextcloud-server-8a41d05761a14292ab0457f4143bb84d237bbcbd.tar.gz
nextcloud-server-8a41d05761a14292ab0457f4143bb84d237bbcbd.zip
Remove deprecated \OCP\Config
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/user_ldap')
-rw-r--r--apps/user_ldap/appinfo/install.php2
-rw-r--r--apps/user_ldap/lib/Configuration.php2
-rw-r--r--apps/user_ldap/lib/Jobs/UpdateGroups.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/apps/user_ldap/appinfo/install.php b/apps/user_ldap/appinfo/install.php
index f0701c66455..3166055395e 100644
--- a/apps/user_ldap/appinfo/install.php
+++ b/apps/user_ldap/appinfo/install.php
@@ -25,7 +25,7 @@
$config = \OC::$server->getConfig();
$state = $config->getSystemValue('ldapIgnoreNamingRules', 'doSet');
if($state === 'doSet') {
- OCP\Config::setSystemValue('ldapIgnoreNamingRules', false);
+ \OC::$server->getConfig()->setSystemValue('ldapIgnoreNamingRules', false);
}
$helper = new \OCA\User_LDAP\Helper($config);
diff --git a/apps/user_ldap/lib/Configuration.php b/apps/user_ldap/lib/Configuration.php
index 8522962172b..7179d9aa39d 100644
--- a/apps/user_ldap/lib/Configuration.php
+++ b/apps/user_ldap/lib/Configuration.php
@@ -372,7 +372,7 @@ class Configuration {
if(is_null($defaults)) {
$defaults = $this->getDefaults();
}
- return \OCP\Config::getAppValue('user_ldap',
+ return \OC::$server->getConfig()->getAppValue('user_ldap',
$this->configPrefix.$varName,
$defaults[$varName]);
}
diff --git a/apps/user_ldap/lib/Jobs/UpdateGroups.php b/apps/user_ldap/lib/Jobs/UpdateGroups.php
index a118d54d36f..c5eff77dbe3 100644
--- a/apps/user_ldap/lib/Jobs/UpdateGroups.php
+++ b/apps/user_ldap/lib/Jobs/UpdateGroups.php
@@ -85,7 +85,7 @@ class UpdateGroups extends \OC\BackgroundJob\TimedJob {
*/
static private function getRefreshInterval() {
//defaults to every hour
- return \OCP\Config::getAppValue('user_ldap', 'bgjRefreshInterval', 3600);
+ return \OC::$server->getConfig()->getAppValue('user_ldap', 'bgjRefreshInterval', 3600);
}
/**