Skip to content
Extraits de code Groupes Projets
Valider c8b721d9 rédigé par marcimat's avatar marcimat
Parcourir les fichiers

refactor: Use native PHP function instead of deprecated `http_status()`

parent 7f538c2b
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -98,7 +98,7 @@ function redirige_par_entete($url, $equiv = '', $status = 302) {
}
include_spip('inc/lang');
if ($status != 302) {
http_status($status);
http_response_code($status);
}
echo '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">', "\n",
html_lang_attributes(), '
......
......@@ -110,7 +110,7 @@ function traiter_appels_actions() {
!headers_sent()
and !ob_get_length()
) {
http_status(204);
http_response_code(204);
} // No Content
return true;
}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter