]> git.mxchange.org Git - friendica.git/commitdiff
Fix wrong parameter name in Core\System::httpExit
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 5 Sep 2022 05:01:23 +0000 (01:01 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sun, 11 Sep 2022 06:36:05 +0000 (02:36 -0400)
src/Core/System.php

index eb27fa351775b3e90ec6be9d230d42701f2acee0..55b4bb8cf9628061572d910850ce3830fd0f6e11 100644 (file)
@@ -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());