diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-05-18 13:33:56 +0300 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-06-04 16:31:33 +0300 |
commit | 0c2ce1b4955215ef159273baf8ff07dea027fefb (patch) | |
tree | b2a1732b0b0729baca168e398a32d00e56957ec6 /console.php | |
parent | 5fcab24e592c5f0f35d3293449dbd2f15a40f5f8 (diff) |
Only load commands of enabled apps
Diffstat (limited to 'console.php')
-rw-r--r-- | console.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/console.php b/console.php index cbb11d2a5fd..ee755431bbd 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; |