diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-05-18 12:33:56 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-05-18 12:33:56 +0200 |
commit | ad3a32edf621d26711086ff914566f55ec74a889 (patch) | |
tree | 7e2e635ac72c1ef7e5de4c65a7259406cebe0ebe /lib | |
parent | 7ee3f99a4ae70a68a5fe8e93c6e611b3aa0929f7 (diff) | |
download | nextcloud-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.php | 2 |
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; |