summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-05-18 12:33:56 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-05-18 12:33:56 +0200
commitad3a32edf621d26711086ff914566f55ec74a889 (patch)
tree7e2e635ac72c1ef7e5de4c65a7259406cebe0ebe /lib
parent7ee3f99a4ae70a68a5fe8e93c6e611b3aa0929f7 (diff)
downloadnextcloud-server-ad3a32edf621d26711086ff914566f55ec74a889.tar.gz
nextcloud-server-ad3a32edf621d26711086ff914566f55ec74a889.zip
Only load commands of enabled apps
Diffstat (limited to 'lib')
-rw-r--r--lib/private/console/application.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/console/application.php b/lib/private/console/application.php
index 6d24665e012..f2aacbfc0e6 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;