[Pkg-owncloud-commits] [owncloud] 167/205: Also load enabled apps
David Prévot
taffit at moszumanska.debian.org
Thu Jul 2 17:37:09 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch stable8
in repository owncloud.
commit 30145c0b52cdc084276e7c682be1ccc4443a6343
Author: Lukas Reschke <lukas at owncloud.com>
Date: Mon Jun 29 11:38:28 2015 +0200
Also load enabled apps
---
settings/controller/appsettingscontroller.php | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/settings/controller/appsettingscontroller.php b/settings/controller/appsettingscontroller.php
index ef483cc..4afc442 100644
--- a/settings/controller/appsettingscontroller.php
+++ b/settings/controller/appsettingscontroller.php
@@ -169,6 +169,15 @@ class AppSettingsController extends Controller {
}
return ($a < $b) ? -1 : 1;
});
+ foreach($apps as $key => $app) {
+ if(!array_key_exists('level', $app) && array_key_exists('ocsid', $app)) {
+ $remoteAppEntry = $this->ocsClient->getApplication($app['ocsid']);
+
+ if(array_key_exists('level', $remoteAppEntry)) {
+ $apps[$key]['level'] = $remoteAppEntry['level'];
+ }
+ }
+ }
break;
// not-installed apps
case 1:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list