Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-01-14 10:37:09 +0300
committerGitHub <noreply@github.com>2020-01-14 10:37:09 +0300
commitbda67669bdd302a00dfd4121395050f09ed434da (patch)
tree7f606d5640816d1cc1799fbc93d27924ef5fe79b /lib
parente7b308cf0a20f21b804430e86dc1eca3757769ec (diff)
parentdf9edf0108d1374b01c85ade946df85e880dfa9a (diff)
Merge pull request #18862 from nextcloud/bugfix/talk-2663/register-with-potentially-updated-namespace
Register with potentially updated namespace
Diffstat (limited to 'lib')
-rw-r--r--lib/private/legacy/app.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/private/legacy/app.php b/lib/private/legacy/app.php
index b20fd8543c8..961e51fe736 100644
--- a/lib/private/legacy/app.php
+++ b/lib/private/legacy/app.php
@@ -227,10 +227,11 @@ class OC_App {
* @internal
* @param string $app
* @param string $path
+ * @param bool $force
*/
- public static function registerAutoloading(string $app, string $path) {
+ public static function registerAutoloading(string $app, string $path, bool $force = false) {
$key = $app . '-' . $path;
- if(isset(self::$alreadyRegistered[$key])) {
+ if (!$force && isset(self::$alreadyRegistered[$key])) {
return;
}
@@ -900,10 +901,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, true);
self::executeRepairSteps($appId, $appData['repair-steps']['pre-migration']);
if (file_exists($appPath . '/appinfo/database.xml')) {