diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2022-07-18 20:19:02 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2022-07-18 20:19:02 +0200 |
commit | 0f2e75a6ce4c9b737c35d20a7ae7237258a60d13 (patch) | |
tree | e47ea937f746a900f8a7cc6a1d1c5a4fd56ca316 | |
parent | 42bcbe269f09bac30251ac102f202fc0091602c9 (diff) | |
download | nextcloud-server-0f2e75a6ce4c9b737c35d20a7ae7237258a60d13.tar.gz nextcloud-server-0f2e75a6ce4c9b737c35d20a7ae7237258a60d13.zip |
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 <blizzz@arthur-schiwon.de>
-rw-r--r-- | lib/private/legacy/OC_App.php | 2 |
1 files changed, 1 insertions, 1 deletions
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; |