Merge pull request #19022 from owncloud/console-loader-validroot

Register valid root for all installed apps in console
This commit is contained in:
Thomas Müller 2015-09-16 15:17:43 +02:00
commit b0414f6a30
1 changed files with 3 additions and 1 deletions

View File

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