aboutsummaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-12-12 12:34:53 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2014-12-12 12:34:53 +0100
commitdcb88e395b63ac0747b1eb1af5cf3d3e65173efb (patch)
tree1b3df0100bec4c585b4f2306f4b27ea3dc3673d0 /settings
parentd94c1731d7887fa15156cec94916d71ee763d9d0 (diff)
downloadnextcloud-server-dcb88e395b63ac0747b1eb1af5cf3d3e65173efb.tar.gz
nextcloud-server-dcb88e395b63ac0747b1eb1af5cf3d3e65173efb.zip
rework api of DependencyAnalyzer
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 3ad52bd2187..b9e60c376de 100644
--- a/settings/controller/appsettingscontroller.php
+++ b/settings/controller/appsettingscontroller.php
@@ -118,7 +118,8 @@ class AppSettingsController extends Controller {
}
// fix groups to be an array
- $apps = array_map(function($app){
+ $dependencyAnalyzer = new DependencyAnalyzer(new Platform($this->config), $this->l10n);
+ $apps = array_map(function($app) use ($dependencyAnalyzer) {
$groups = array();
if (is_string($app['groups'])) {
$groups = json_decode($app['groups']);
@@ -127,8 +128,7 @@ class AppSettingsController extends Controller {
$app['canUnInstall'] = !$app['active'] && $app['removable'];
// analyse dependencies
- $dependencyAnalyzer = new DependencyAnalyzer($app, new Platform($this->config), $this->l10n);
- $missing = $dependencyAnalyzer->analyze();
+ $missing = $dependencyAnalyzer->analyze($app);
$app['canInstall'] = empty($missing);
$app['missingDependencies'] = $missing;