From dad56921aeca0da7750039362777764998d86aee Mon Sep 17 00:00:00 2001 From: Robin McCorkell Date: Mon, 14 Sep 2015 16:58:25 +0100 Subject: [PATCH] Register valid root for all installed apps in console We need to use commands from apps that aren't enabled (so don't get loaded). --- lib/private/console/application.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/private/console/application.php b/lib/private/console/application.php index 7c70992721..edfb45c857 100644 --- a/lib/private/console/application.php +++ b/lib/private/console/application.php @@ -55,7 +55,9 @@ class Application { if (!\OCP\Util::needUpgrade()) { OC_App::loadApps(); foreach (\OC::$server->getAppManager()->getInstalledApps() as $app) { - $file = OC_App::getAppPath($app) . '/appinfo/register_command.php'; + $appPath = \OC_App::getAppPath($app); + \OC::$loader->addValidRoot($appPath); + $file = $appPath . '/appinfo/register_command.php'; if (file_exists($file)) { require $file; }