summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-01-17 21:10:40 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-01-17 21:41:56 +0100
commit09f8a755ec6897eb72aa1da4eff623807201623d (patch)
treec8072f914b1de3ebcdf373a2547303adcd8ad479 /lib/private/legacy
parentee2617d88c17165dd3a4862f2a5b98a434435430 (diff)
downloadnextcloud-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')
-rw-r--r--lib/private/legacy/app.php4
-rw-r--r--lib/private/legacy/util.php5
2 files changed, 4 insertions, 5 deletions
diff --git a/lib/private/legacy/app.php b/lib/private/legacy/app.php
index a20a88ac08f..306d2667bca 100644
--- a/lib/private/legacy/app.php
+++ b/lib/private/legacy/app.php
@@ -301,7 +301,7 @@ class OC_App {
\OC::$server->getAppConfig()->setValue($app, 'types', $appTypes);
if (\OC::$server->getAppManager()->hasProtectedAppType($appData['types'])) {
- $enabled = \OC::$server->getAppConfig()->getValue($app, 'enabled', 'yes');
+ $enabled = \OC::$server->getConfig()->getAppValue($app, 'enabled', 'yes');
if ($enabled !== 'yes' && $enabled !== 'no') {
\OC::$server->getAppConfig()->setValue($app, 'enabled', 'yes');
}
@@ -803,7 +803,7 @@ class OC_App {
continue;
}
- $enabled = \OC::$server->getAppConfig()->getValue($app, 'enabled', 'no');
+ $enabled = \OC::$server->getConfig()->getAppValue($app, 'enabled', 'no');
$info['groups'] = null;
if ($enabled === 'yes') {
$active = true;
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 {