[Pkg-owncloud-commits] [owncloud] 26/457: Only load commands of enabled apps

David Prévot taffit at moszumanska.debian.org
Sun Jun 28 20:05:18 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 ad3a32edf621d26711086ff914566f55ec74a889
Author: Morris Jobke <hey at morrisjobke.de>
Date:   Mon May 18 12:33:56 2015 +0200

    Only load commands of enabled apps
---
 lib/private/console/application.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/private/console/application.php b/lib/private/console/application.php
index 6d24665..f2aacbf 100644
--- a/lib/private/console/application.php
+++ b/lib/private/console/application.php
@@ -35,7 +35,7 @@ class Application {
 		if ($this->config->getSystemValue('installed', false)) {
 			if (!\OCP\Util::needUpgrade()) {
 				OC_App::loadApps();
-				foreach (OC_App::getAllApps() as $app) {
+				foreach (\OC::$server->getAppManager()->getInstalledApps() as $app) {
 					$file = OC_App::getAppPath($app) . '/appinfo/register_command.php';
 					if (file_exists($file)) {
 						require $file;

-- 
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