From: Hypolite Petovan Date: Mon, 5 Sep 2022 05:01:23 +0000 (-0400) Subject: Fix wrong parameter name in Core\System::httpExit X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bdd80eeaaf9a7f47dcde471b10f728170eead5aa;p=friendica.git Fix wrong parameter name in Core\System::httpExit --- diff --git a/src/Core/System.php b/src/Core/System.php index eb27fa3517..55b4bb8cf9 100644 --- a/src/Core/System.php +++ b/src/Core/System.php @@ -323,12 +323,12 @@ class System * After finishing the process is getting killed. * * @param string $content - * @param [type] $responce + * @param string $type * @param string|null $content_type * @return void */ - public static function httpExit(string $content, string $responce = Response::TYPE_HTML, ?string $content_type = null) { - DI::apiResponse()->setType($responce, $content_type); + public static function httpExit(string $content, string $type = Response::TYPE_HTML, ?string $content_type = null) { + DI::apiResponse()->setType($type, $content_type); DI::apiResponse()->addContent($content); DI::page()->exit(DI::apiResponse()->generate());