diff options
Diffstat (limited to 'lib/private/App/AppStore/Fetcher/Fetcher.php')
-rw-r--r-- | lib/private/App/AppStore/Fetcher/Fetcher.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/private/App/AppStore/Fetcher/Fetcher.php b/lib/private/App/AppStore/Fetcher/Fetcher.php index 7f38e72be2d..ab0e299f0a2 100644 --- a/lib/private/App/AppStore/Fetcher/Fetcher.php +++ b/lib/private/App/AppStore/Fetcher/Fetcher.php @@ -69,9 +69,7 @@ abstract class Fetcher { * @return array */ protected function fetch($ETag, $content) { - - $systemConfig = \OC::$server->getSystemConfig(); - $appstoreenabled = $systemConfig->getValue('appstoreenabled', true); + $appstoreenabled = $this->config->getSystemValue('appstoreenabled', true); if (!$appstoreenabled) { return []; @@ -111,8 +109,7 @@ abstract class Fetcher { * @return array */ public function get() { - $systemConfig = \OC::$server->getSystemConfig(); - $appstoreenabled = $systemConfig->getValue('appstoreenabled', true); + $appstoreenabled = $this->config->getSystemValue('appstoreenabled', true); if (!$appstoreenabled) { return []; |