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
Merge "Add option for confirmation prompts on rollbacks"
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialNewpages.php
diff --git
a/includes/specials/SpecialNewpages.php
b/includes/specials/SpecialNewpages.php
index
8051b0b
..
2bbc0bf
100644
(file)
--- a/
includes/specials/SpecialNewpages.php
+++ b/
includes/specials/SpecialNewpages.php
@@
-192,9
+192,12
@@
class SpecialNewpages extends IncludableSpecialPage {
// wfArrayToCgi(), called from LinkRenderer/Title, will not output null and false values
// to the URL, which would omit some options (T158504). Fix it by explicitly setting them
// to 0 or 1.
// wfArrayToCgi(), called from LinkRenderer/Title, will not output null and false values
// to the URL, which would omit some options (T158504). Fix it by explicitly setting them
// to 0 or 1.
- $changed = array_map( function ( $value ) {
- return $value ? '1' : '0';
- }, $changed );
+ // Also do this only for boolean options, not eg. namespace or tagfilter
+ foreach ( $changed as $key => $value ) {
+ if ( array_key_exists( $key, $filters ) ) {
+ $changed[$key] = $changed[$key] ? '1' : '0';
+ }
+ }
$self = $this->getPageTitle();
$linkRenderer = $this->getLinkRenderer();
$self = $this->getPageTitle();
$linkRenderer = $this->getLinkRenderer();