From ad3a32edf621d26711086ff914566f55ec74a889 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Mon, 18 May 2015 12:33:56 +0200 Subject: [PATCH] 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 6d24665e01..f2aacbfc0e 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;