aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-01-13 15:12:04 +0100
committerJoas Schilling <coding@schilljs.com>2020-01-13 15:15:49 +0100
commitefcf246f0787d980b85d9cb89e1d15114774d4a5 (patch)
treeee98ed73d3f8d79823c0b0294e736db866a6d79c
parentc2266da9413501aa1b7efb9a712b3011a1ebe5ee (diff)
downloadnextcloud-server-efcf246f0787d980b85d9cb89e1d15114774d4a5.tar.gz
nextcloud-server-efcf246f0787d980b85d9cb89e1d15114774d4a5.zip
Register the namespace after reading the new file
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--lib/private/legacy/app.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/legacy/app.php b/lib/private/legacy/app.php
index b20fd8543c8..16890fe7435 100644
--- a/lib/private/legacy/app.php
+++ b/lib/private/legacy/app.php
@@ -900,10 +900,11 @@ class OC_App {
if($appPath === false) {
return false;
}
- self::registerAutoloading($appId, $appPath);
\OC::$server->getAppManager()->clearAppsCache();
$appData = self::getAppInfo($appId);
+
+ self::registerAutoloading($appId, $appPath);
self::executeRepairSteps($appId, $appData['repair-steps']['pre-migration']);
if (file_exists($appPath . '/appinfo/database.xml')) {