diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-02-23 14:56:28 -0600 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-02-24 08:34:14 +0100 |
commit | f3bfacc976c2e0969f52c162120273e81730a817 (patch) | |
tree | f5973c3986520de9adb2d14a3e50a9f7457b83e7 /lib | |
parent | cfb6223de72a242e63d6ccf8b811f25958240dd0 (diff) | |
download | nextcloud-server-f3bfacc976c2e0969f52c162120273e81730a817.tar.gz nextcloud-server-f3bfacc976c2e0969f52c162120273e81730a817.zip |
Fix unit tests and improve appstore logic
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib')
-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 []; |