diff --git a/lib/private/legacy/OC_App.php b/lib/private/legacy/OC_App.php index f290b7a610c67..9fa13a56d3842 100644 --- a/lib/private/legacy/OC_App.php +++ b/lib/private/legacy/OC_App.php @@ -183,7 +183,7 @@ public static function loadApp(string $app) { 'app' => $app, ]); try { - self::requireAppFile($app); + self::requireAppFile($appPath); } catch (Throwable $ex) { if ($ex instanceof ServerNotAvailableException) { throw $ex;