From 8a41d05761a14292ab0457f4143bb84d237bbcbd Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Sat, 13 Jan 2018 14:25:04 +0100 Subject: Remove deprecated \OCP\Config Signed-off-by: Roeland Jago Douma --- apps/user_ldap/appinfo/install.php | 2 +- apps/user_ldap/lib/Configuration.php | 2 +- apps/user_ldap/lib/Jobs/UpdateGroups.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/user_ldap') 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); } /** -- cgit v1.2.3