diff --git a/lib/private/legacy/OC_App.php b/lib/private/legacy/OC_App.php index fef5bec6ab00f..f6f0e01895fce 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) { ]); \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;