mirror of
https://github.com/pablouser1/ProxiTok.git
synced 2024-12-06 19:27:30 +01:00
fixed error constructor
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user