]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix loading legacy app.php with multi app dir 33270/head
authorArthur Schiwon <blizzz@arthur-schiwon.de>
Mon, 18 Jul 2022 18:19:02 +0000 (20:19 +0200)
committerArthur Schiwon <blizzz@arthur-schiwon.de>
Mon, 18 Jul 2022 18:19:02 +0000 (20:19 +0200)
- 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>
lib/private/legacy/OC_App.php

index f290b7a610c67c262187527cb00c3de450212cbe..9fa13a56d3842ce1fe37e8fcff96c3db492e9b11 100644 (file)
@@ -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;