Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2015-12-18 12:33:30 +0300
committerRoeland Jago Douma <rullzer@owncloud.com>2015-12-18 13:53:41 +0300
commit82bf99c0cfd764b25d1442cf199f219cd852ff69 (patch)
treee0b7f2a4552e19d7bb48c061ae3dc023d2efa580 /lib/private/app.php
parent6a7dbf3cf24125bfac5089a4fae0a305591410de (diff)
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/app.php')
-rw-r--r--lib/private/app.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/app.php b/lib/private/app.php
index e8cc9219224..b0d2273a0cd 100644
--- a/lib/private/app.php
+++ b/lib/private/app.php
@@ -96,7 +96,7 @@ class OC_App {
* if $types is set, only apps of those types will be loaded
*/
public static function loadApps($types = null) {
- if (OC_Config::getValue('maintenance', false)) {
+ if (\OC::$config->getValue('maintenance', false)) {
return false;
}
// Load the enabled apps here
@@ -239,7 +239,7 @@ class OC_App {
* @return string[]
*/
public static function getEnabledApps($forceRefresh = false, $all = false) {
- if (!OC_Config::getValue('installed', false)) {
+ if (!\OC::$config->getValue('installed', false)) {
return array();
}
// in incognito mode or when logged out, $user will be false,
@@ -374,7 +374,7 @@ class OC_App {
$settings = array();
// by default, settings only contain the help menu
if (OC_Util::getEditionString() === '' &&
- OC_Config::getValue('knowledgebaseenabled', true) == true
+ \OC::$config->getValue('knowledgebaseenabled', true) == true
) {
$settings = array(
array(
@@ -455,7 +455,7 @@ class OC_App {
* @return string|false
*/
public static function getInstallPath() {
- if (OC_Config::getValue('appstoreenabled', true) == false) {
+ if (\OC::$config->getValue('appstoreenabled', true) == false) {
return false;
}