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:
authorLukas Reschke <lukas@owncloud.com>2016-01-06 02:03:08 +0300
committerRoeland Jago Douma <rullzer@owncloud.com>2016-01-06 13:40:22 +0300
commit88c7face07722d03806c5b89a41a3ab90bbd9718 (patch)
treee95003decc4033538a188050b8a2cf7cf50db34c /settings
parentc77917f48c6c6d7110c7380a398e25beb906f50f (diff)
Inject OCSClient
Fixes https://github.com/owncloud/core/issues/21451
Diffstat (limited to 'settings')
-rw-r--r--settings/controller/appsettingscontroller.php6
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'];
});