fixed error constructor

This commit is contained in:
Pablo Ferreiro
2024-08-21 03:30:52 +02:00
parent 3b441c2683
commit c4f3a80c3e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -12,6 +12,6 @@ class ErrorHandler {
public static function showText(int $code, string $msg) {
http_response_code($code);
Wrappers::latte('error', new ErrorTemplate($code, $msg));
Wrappers::latte('error', new ErrorTemplate($code, $msg, null, null));
}
}
+1 -1
View File
@@ -10,7 +10,7 @@ class ErrorTemplate extends BaseTemplate {
public ?Response $response = null;
function __construct(int $http_code, string $msg, ?int $tiktok_code = null, ?Response $response) {
function __construct(int $http_code, string $msg, ?int $tiktok_code, ?Response $response) {
parent::__construct('Error');
$this->http_code = $http_code;
$this->msg = $msg;