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
(bug 36524) "Show" options are now remembered between successive clicks.
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialRecentchanges.php
diff --git
a/includes/specials/SpecialRecentchanges.php
b/includes/specials/SpecialRecentchanges.php
index
bb384d4
..
ec8f93b
100644
(file)
--- a/
includes/specials/SpecialRecentchanges.php
+++ b/
includes/specials/SpecialRecentchanges.php
@@
-772,6
+772,16
@@
class SpecialRecentChanges extends IncludableSpecialPage {
*/
function makeOptionsLink( $title, $override, $options, $active = false ) {
$params = $override + $options;
*/
function makeOptionsLink( $title, $override, $options, $active = false ) {
$params = $override + $options;
+
+ // Bug 36524: false values have be converted to "0" otherwise
+ // wfArrayToCgi() will omit it them.
+ foreach ( $params as &$value ) {
+ if ( $value === false ) {
+ $value = '0';
+ }
+ }
+ unset( $value );
+
$text = htmlspecialchars( $title );
if ( $active ) {
$text = '<strong>' . $text . '</strong>';
$text = htmlspecialchars( $title );
if ( $active ) {
$text = '<strong>' . $text . '</strong>';