Merge pull request #19022 from owncloud/console-loader-validroot
Register valid root for all installed apps in console
This commit is contained in:
commit
b0414f6a30
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue