From 1ec1321c26087cac24cfcfbcdbacc867d22aef2c Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Mon, 18 Jul 2022 20:19:02 +0200 Subject: [PATCH] fix loading legacy app.php with multi app dir - requireAppFile() only appends /appinfo/app.php - without the absolute path, require_once looks into include_path - the first match in inlcude_path however migth be different from appPath - fixed by providing the tested(!), full path to the app Signed-off-by: Arthur Schiwon --- lib/private/legacy/OC_App.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/legacy/OC_App.php b/lib/private/legacy/OC_App.php index fef5bec6ab0..f6f0e01895f 100644 --- a/lib/private/legacy/OC_App.php +++ b/lib/private/legacy/OC_App.php @@ -183,7 +183,7 @@ class OC_App { ]); \OC::$server->getEventLogger()->start('load_app_' . $app, 'Load app: ' . $app); try { - self::requireAppFile($app); + self::requireAppFile($appPath); } catch (Throwable $ex) { if ($ex instanceof ServerNotAvailableException) { throw $ex; -- 2.39.5