summaryrefslogtreecommitdiffstats
path: root/settings/controller
diff options
context:
space:
mode:
authorBernhard Posselt <Raydiation@users.noreply.github.com>2014-12-15 12:34:46 +0100
committerBernhard Posselt <Raydiation@users.noreply.github.com>2014-12-15 12:34:46 +0100
commitbe45366013c50d9a9d18e258c66e18798719d8df (patch)
treef9e897521e0e93e1f96755ae60752a9ea7c0bcda /settings/controller
parentb831914aa66ab9591dd4593233cc8f67ed6cf8eb (diff)
parente58b9d3eb70996a6ccccabf979125fc0797fbd85 (diff)
downloadnextcloud-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.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;