Fix wrong parameter name in Core\System::httpExit

This commit is contained in:
Hypolite Petovan 2022-09-05 01:01:23 -04:00
parent 77798482cb
commit bdd80eeaaf

View File

@ -323,12 +323,12 @@ class System
* After finishing the process is getting killed. * After finishing the process is getting killed.
* *
* @param string $content * @param string $content
* @param [type] $responce * @param string $type
* @param string|null $content_type * @param string|null $content_type
* @return void * @return void
*/ */
public static function httpExit(string $content, string $responce = Response::TYPE_HTML, ?string $content_type = null) { public static function httpExit(string $content, string $type = Response::TYPE_HTML, ?string $content_type = null) {
DI::apiResponse()->setType($responce, $content_type); DI::apiResponse()->setType($type, $content_type);
DI::apiResponse()->addContent($content); DI::apiResponse()->addContent($content);
DI::page()->exit(DI::apiResponse()->generate()); DI::page()->exit(DI::apiResponse()->generate());