From 0f2e75a6ce4c9b737c35d20a7ae7237258a60d13 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Mon, 18 Jul 2022 20:19:02 +0200 Subject: 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 f290b7a610c..9fa13a56d38 100644 --- a/lib/private/legacy/OC_App.php +++ b/lib/private/legacy/OC_App.php @@ -183,7 +183,7 @@ class OC_App { 'app' => $app, ]); try { - self::requireAppFile($app); + self::requireAppFile($appPath); } catch (Throwable $ex) { if ($ex instanceof ServerNotAvailableException) { throw $ex; -- cgit v1.2.3