dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use getConnectionRef() in ForeignDBViaLBRepo
[lhc/web/wiklou.git]
/
includes
/
WebResponse.php
diff --git
a/includes/WebResponse.php
b/includes/WebResponse.php
index
90b76e3
..
339b2e3
100644
(file)
--- 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 ) {
* @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 );
+ }
}
/**
}
/**