X-Git-Url: http://git.cyclocoop.org/%27.parametre_url%28%20%20%20generer_action_auteur%28%27charger_plugin%27%2C%20%27update_flux%27%29%2C%27update_flux%27%2C%20%27oui%27%29.%27?a=blobdiff_plain;f=includes%2FWebResponse.php;h=339b2e3ff0ac6f11851a3b707b9077de7d733325;hb=61898ad28ed69c5b391eb43e0db9386279b9612c;hp=90b76e33276a6bca71fdee34e9050c59a354b7b3;hpb=2e72c57b999db4ff9d73f0ebba12b2b7c4d215db;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/WebResponse.php b/includes/WebResponse.php index 90b76e3327..339b2e3ff0 100644 --- a/includes/WebResponse.php +++ b/includes/WebResponse.php @@ -39,7 +39,11 @@ class WebResponse { * @param null|int $http_response_code Forces the HTTP response code to the specified value. */ public function header( $string, $replace = true, $http_response_code = null ) { - header( $string, $replace, $http_response_code ); + if ( $http_response_code ) { + header( $string, $replace, $http_response_code ); + } else { + header( $string, $replace ); + } } /**