summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-05-18 16:16:04 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-05-18 16:16:04 +0200
commitc28cd0377001ffd4b53ca03c6601931b0873e030 (patch)
tree1737f44f60f497a4f8edf36c9441188aa5a1a108 /lib
parenta1e60e78823d0f00681db0a6dc62a5a157b302f4 (diff)
parentad3a32edf621d26711086ff914566f55ec74a889 (diff)
downloadnextcloud-server-c28cd0377001ffd4b53ca03c6601931b0873e030.tar.gz
nextcloud-server-c28cd0377001ffd4b53ca03c6601931b0873e030.zip
Merge pull request #16403 from owncloud/fix-command-loading
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;