mirror of
https://github.com/standardebooks/web.git
synced 2025-07-14 18:42:00 -04:00
Use HTTP code enums instead of ints
This commit is contained in:
parent
3f822b85c3
commit
3050ab7219
28 changed files with 56 additions and 56 deletions
|
@ -23,7 +23,7 @@ if($colorScheme !== null){
|
|||
}
|
||||
|
||||
// HTTP 303, See other
|
||||
http_response_code(303);
|
||||
http_response_code(Enums\HttpCode::SeeOther->value);
|
||||
|
||||
$redirect = $_SERVER['HTTP_REFERER'] ?? '/';
|
||||
header('Location: ' . $redirect);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue