summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy/util.php
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 /lib/private/legacy/util.php
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 'lib/private/legacy/util.php')
-rw-r--r--lib/private/legacy/util.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/legacy/util.php b/lib/private/legacy/util.php
index 5cc83c0c304..aaedd88a7ff 100644
--- a/lib/private/legacy/util.php
+++ b/lib/private/legacy/util.php
@@ -341,10 +341,10 @@ class OC_Util {
* @suppress PhanDeprecatedFunction
*/
public static function isDefaultExpireDateEnforced() {
- $isDefaultExpireDateEnabled = \OCP\Config::getAppValue('core', 'shareapi_default_expire_date', 'no');
+ $isDefaultExpireDateEnabled = \OC::$server->getConfig()->getAppValue('core', 'shareapi_default_expire_date', 'no');
$enforceDefaultExpireDate = false;
if ($isDefaultExpireDateEnabled === 'yes') {
- $value = \OCP\Config::getAppValue('core', 'shareapi_enforce_expire_date', 'no');
+ $value = \OC::$server->getConfig()->getAppValue('core', 'shareapi_enforce_expire_date', 'no');
$enforceDefaultExpireDate = ($value === 'yes') ? true : false;
}