aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-02-23 14:56:28 -0600
committerJoas Schilling <coding@schilljs.com>2017-02-24 08:34:14 +0100
commitf3bfacc976c2e0969f52c162120273e81730a817 (patch)
treef5973c3986520de9adb2d14a3e50a9f7457b83e7 /lib
parentcfb6223de72a242e63d6ccf8b811f25958240dd0 (diff)
downloadnextcloud-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.php7
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 [];