diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2015-12-18 10:33:30 +0100 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2015-12-18 11:53:41 +0100 |
commit | 82bf99c0cfd764b25d1442cf199f219cd852ff69 (patch) | |
tree | e0b7f2a4552e19d7bb48c061ae3dc023d2efa580 /lib/private/systemconfig.php | |
parent | 6a7dbf3cf24125bfac5089a4fae0a305591410de (diff) | |
download | nextcloud-server-82bf99c0cfd764b25d1442cf199f219cd852ff69.tar.gz nextcloud-server-82bf99c0cfd764b25d1442cf199f219cd852ff69.zip |
Get rid of legacy OC_Config
We were still using the lecagy class OC_Config all over the place. Which
was a wrapper around the new class OC\Config
Diffstat (limited to 'lib/private/systemconfig.php')
-rw-r--r-- | lib/private/systemconfig.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/private/systemconfig.php b/lib/private/systemconfig.php index 94b815aebd7..d2ceeb8272d 100644 --- a/lib/private/systemconfig.php +++ b/lib/private/systemconfig.php @@ -49,7 +49,7 @@ class SystemConfig { * @return array an array of key names */ public function getKeys() { - return \OC_Config::getKeys(); + return \OC::$config->getKeys(); } /** @@ -59,7 +59,7 @@ class SystemConfig { * @param mixed $value the value that should be stored */ public function setValue($key, $value) { - \OC_Config::setValue($key, $value); + \OC::$config->setValue($key, $value); } /** @@ -69,7 +69,7 @@ class SystemConfig { * If value is null, the config key will be deleted */ public function setValues(array $configs) { - \OC_Config::setValues($configs); + \OC::$config->setValues($configs); } /** @@ -80,7 +80,7 @@ class SystemConfig { * @return mixed the value or $default */ public function getValue($key, $default = '') { - return \OC_Config::getValue($key, $default); + return \OC::$config->getValue($key, $default); } /** @@ -106,7 +106,7 @@ class SystemConfig { * @param string $key the key of the value, under which it was saved */ public function deleteValue($key) { - \OC_Config::deleteKey($key); + \OC::$config->deleteKey($key); } /** |