diff options
author | Lukas Reschke <lukas@owncloud.com> | 2016-01-06 00:03:08 +0100 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2016-01-06 11:40:22 +0100 |
commit | 88c7face07722d03806c5b89a41a3ab90bbd9718 (patch) | |
tree | e95003decc4033538a188050b8a2cf7cf50db34c /settings/controller | |
parent | c77917f48c6c6d7110c7380a398e25beb906f50f (diff) | |
download | nextcloud-server-88c7face07722d03806c5b89a41a3ab90bbd9718.tar.gz nextcloud-server-88c7face07722d03806c5b89a41a3ab90bbd9718.zip |
Inject OCSClient
Fixes https://github.com/owncloud/core/issues/21451
Diffstat (limited to 'settings/controller')
-rw-r--r-- | settings/controller/appsettingscontroller.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/settings/controller/appsettingscontroller.php b/settings/controller/appsettingscontroller.php index d2430f9b559..765fe2d2850 100644 --- a/settings/controller/appsettingscontroller.php +++ b/settings/controller/appsettingscontroller.php @@ -218,7 +218,7 @@ class AppSettingsController extends Controller { break; // not-installed apps case 1: - $apps = \OC_App::listAllApps(true, $includeUpdateInfo); + $apps = \OC_App::listAllApps(true, $includeUpdateInfo, $this->ocsClient); $apps = array_filter($apps, function ($app) { return !$app['active']; }); @@ -244,7 +244,7 @@ class AppSettingsController extends Controller { default: $filter = $this->config->getSystemValue('appstore.experimental.enabled', false) ? 'all' : 'approved'; - $apps = \OC_App::getAppstoreApps($filter, $category); + $apps = \OC_App::getAppstoreApps($filter, $category, $this->ocsClient); if (!$apps) { $apps = array(); } else { @@ -310,7 +310,7 @@ class AppSettingsController extends Controller { * @return array */ private function getInstalledApps($includeUpdateInfo = true) { - $apps = \OC_App::listAllApps(true, $includeUpdateInfo); + $apps = \OC_App::listAllApps(true, $includeUpdateInfo, $this->ocsClient); $apps = array_filter($apps, function ($app) { return $app['active']; }); |