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
SpecialMergeHistory: add redirect=no on target parameter on success message
[lhc/web/wiklou.git]
/
includes
/
WebRequest.php
diff --git
a/includes/WebRequest.php
b/includes/WebRequest.php
index
850f101
..
f402f3b
100644
(file)
--- a/
includes/WebRequest.php
+++ b/
includes/WebRequest.php
@@
-315,7
+315,9
@@
class WebRequest {
}
} else {
global $wgContLang;
}
} else {
global $wgContLang;
- $data = isset( $wgContLang ) ? $wgContLang->normalize( $data ) : UtfNormal\Validator::cleanUp( $data );
+ $data = isset( $wgContLang ) ?
+ $wgContLang->normalize( $data ) :
+ UtfNormal\Validator::cleanUp( $data );
}
return $data;
}
}
return $data;
}
@@
-754,7
+756,8
@@
class WebRequest {
* Appends or replaces value of query variables.
*
* @param array $array Array of values to replace/add to query
* Appends or replaces value of query variables.
*
* @param array $array Array of values to replace/add to query
- * @param bool $onlyquery Whether to only return the query string and not the complete URL [deprecated]
+ * @param bool $onlyquery Whether to only return the query string
+ * and not the complete URL [deprecated]
* @return string
*/
public function appendQueryArray( $array, $onlyquery = true ) {
* @return string
*/
public function appendQueryArray( $array, $onlyquery = true ) {
@@
-871,7
+874,7
@@
class WebRequest {
/**
* Initialise the header list
*/
/**
* Initialise the header list
*/
- pr
ivate
function initHeaders() {
+ pr
otected
function initHeaders() {
if ( count( $this->headers ) ) {
return;
}
if ( count( $this->headers ) ) {
return;
}
@@
-1324,6
+1327,13
@@
class FauxRequest extends WebRequest {
$this->protocol = $protocol;
}
$this->protocol = $protocol;
}
+ /**
+ * Initialise the header list
+ */
+ protected function initHeaders() {
+ // Nothing to init
+ }
+
/**
* @param string $name
* @param string $default
/**
* @param string $name
* @param string $default