Merge pull request #16403 from owncloud/fix-command-loading
Only load commands of enabled apps
This commit is contained in:
commit
c28cd03770
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue