diff options
author | Bernhard Posselt <Raydiation@users.noreply.github.com> | 2014-12-15 12:34:46 +0100 |
---|---|---|
committer | Bernhard Posselt <Raydiation@users.noreply.github.com> | 2014-12-15 12:34:46 +0100 |
commit | be45366013c50d9a9d18e258c66e18798719d8df (patch) | |
tree | f9e897521e0e93e1f96755ae60752a9ea7c0bcda /settings/controller | |
parent | b831914aa66ab9591dd4593233cc8f67ed6cf8eb (diff) | |
parent | e58b9d3eb70996a6ccccabf979125fc0797fbd85 (diff) | |
download | nextcloud-server-be45366013c50d9a9d18e258c66e18798719d8df.tar.gz nextcloud-server-be45366013c50d9a9d18e258c66e18798719d8df.zip |
Merge pull request #12625 from owncloud/app-dependencies-libs-and-commands
adding dependencies for command line tools and php libraries
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 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; |