[Pkg-owncloud-commits] [owncloud] 20/62: Only load commands of enabled apps

David Prévot taffit at moszumanska.debian.org
Tue Jun 23 23:39:34 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v8.0.5beta
in repository owncloud.

commit 0c2ce1b4955215ef159273baf8ff07dea027fefb
Author: Morris Jobke <hey at morrisjobke.de>
Date:   Mon May 18 12:33:56 2015 +0200

    Only load commands of enabled apps
---
 console.php | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/console.php b/console.php
index cbb11d2..ee75543 100644
--- a/console.php
+++ b/console.php
@@ -51,7 +51,11 @@ try {
 	$application = new Application($defaults->getName(), \OC_Util::getVersionString());
 	require_once 'core/register_command.php';
 	if (!\OCP\Util::needUpgrade()) {
+		$appManager = \OC::$server->getAppManager();
 		foreach(OC_App::getAllApps() as $app) {
+			if(!$appManager->isInstalled($app)) {
+				continue;
+			}
 			$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