diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-01-17 21:10:40 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-01-17 21:41:56 +0100 |
commit | 09f8a755ec6897eb72aa1da4eff623807201623d (patch) | |
tree | c8072f914b1de3ebcdf373a2547303adcd8ad479 /lib/private/legacy/util.php | |
parent | ee2617d88c17165dd3a4862f2a5b98a434435430 (diff) | |
download | nextcloud-server-09f8a755ec6897eb72aa1da4eff623807201623d.tar.gz nextcloud-server-09f8a755ec6897eb72aa1da4eff623807201623d.zip |
Remove IAppConfig::getValue
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/legacy/util.php')
-rw-r--r-- | lib/private/legacy/util.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/private/legacy/util.php b/lib/private/legacy/util.php index ca7cc1dc5cf..776a879e731 100644 --- a/lib/private/legacy/util.php +++ b/lib/private/legacy/util.php @@ -300,8 +300,7 @@ class OC_Util { * @suppress PhanDeprecatedFunction */ public static function isPublicLinkPasswordRequired() { - $appConfig = \OC::$server->getAppConfig(); - $enforcePassword = $appConfig->getValue('core', 'shareapi_enforce_links_password', 'no'); + $enforcePassword = \OC::$server->getConfig()->getAppValue('core', 'shareapi_enforce_links_password', 'no'); return ($enforcePassword === 'yes') ? true : false; } @@ -1116,7 +1115,7 @@ class OC_Util { if (isset($_REQUEST['redirect_url']) && strpos($_REQUEST['redirect_url'], '@') === false) { $location = $urlGenerator->getAbsoluteURL(urldecode($_REQUEST['redirect_url'])); } else { - $defaultPage = \OC::$server->getAppConfig()->getValue('core', 'defaultpage'); + $defaultPage = \OC::$server->getConfig()->getAppValue('core', 'defaultpage'); if ($defaultPage) { $location = $urlGenerator->getAbsoluteURL($defaultPage); } else { |