Skip to content
Snippets Groups Projects
Unverified Commit bda67669 authored by Roeland Jago Douma's avatar Roeland Jago Douma Committed by GitHub
Browse files

Merge pull request #18862 from...

Merge pull request #18862 from nextcloud/bugfix/talk-2663/register-with-potentially-updated-namespace

Register with potentially updated namespace
parents e7b308cf df9edf01
No related branches found
No related tags found
No related merge requests found
...@@ -227,10 +227,11 @@ class OC_App { ...@@ -227,10 +227,11 @@ class OC_App {
* @internal * @internal
* @param string $app * @param string $app
* @param string $path * @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; $key = $app . '-' . $path;
if(isset(self::$alreadyRegistered[$key])) { if (!$force && isset(self::$alreadyRegistered[$key])) {
return; return;
} }
...@@ -900,10 +901,11 @@ class OC_App { ...@@ -900,10 +901,11 @@ class OC_App {
if($appPath === false) { if($appPath === false) {
return false; return false;
} }
self::registerAutoloading($appId, $appPath);
\OC::$server->getAppManager()->clearAppsCache(); \OC::$server->getAppManager()->clearAppsCache();
$appData = self::getAppInfo($appId); $appData = self::getAppInfo($appId);
self::registerAutoloading($appId, $appPath, true);
self::executeRepairSteps($appId, $appData['repair-steps']['pre-migration']); self::executeRepairSteps($appId, $appData['repair-steps']['pre-migration']);
if (file_exists($appPath . '/appinfo/database.xml')) { if (file_exists($appPath . '/appinfo/database.xml')) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment