Only load commands of enabled apps

This commit is contained in:
Morris Jobke 2015-05-18 12:33:56 +02:00
parent 7ee3f99a4a
commit ad3a32edf6
1 changed files with 1 additions and 1 deletions

View File

@ -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;