Index: trunk/phase3/includes/SpecialRecentchanges.php |
— | — | @@ -32,6 +32,7 @@ |
33 | 33 | /* int */ 'limit' => $wgUser->getDefaultOption('rclimit'), |
34 | 34 | /* bool */ 'hideminor' => false, |
35 | 35 | /* bool */ 'hidebots' => true, |
| 36 | + /* bool */ 'hideanons' => false, |
36 | 37 | /* bool */ 'hideliu' => false, |
37 | 38 | /* bool */ 'hidepatrolled' => false, |
38 | 39 | /* bool */ 'hidemyself' => false, |
— | — | @@ -69,6 +70,7 @@ |
70 | 71 | $namespace = $wgRequest->getIntOrNull( 'namespace' ); |
71 | 72 | $invert = $wgRequest->getBool( 'invert', $defaults['invert'] ); |
72 | 73 | $hidebots = $wgRequest->getBool( 'hidebots', $defaults['hidebots'] ); |
| 74 | + $hideanons = $wgRequest->getBool( 'hideanons', $defaults['hideanons'] ); |
73 | 75 | $hideliu = $wgRequest->getBool( 'hideliu', $defaults['hideliu'] ); |
74 | 76 | $hidepatrolled = $wgRequest->getBool( 'hidepatrolled', $defaults['hidepatrolled'] ); |
75 | 77 | $hidemyself = $wgRequest->getBool ( 'hidemyself', $defaults['hidemyself'] ); |
— | — | @@ -84,6 +86,7 @@ |
85 | 87 | if ( 'minor' == $bit ) $hideminor = 0; |
86 | 88 | if ( 'hideliu' == $bit ) $hideliu = 1; |
87 | 89 | if ( 'hidepatrolled' == $bit ) $hidepatrolled = 1; |
| 90 | + if ( 'hideanons' == $bit ) $hideanons = 1; |
88 | 91 | if ( 'hidemyself' == $bit ) $hidemyself = 1; |
89 | 92 | |
90 | 93 | if ( is_numeric( $bit ) ) { |
— | — | @@ -135,6 +138,7 @@ |
136 | 139 | $hidem .= $hidebots ? ' AND rc_bot=0' : ''; |
137 | 140 | $hidem .= ( $hideliu && !$hidemyself ) ? ' AND rc_user=0' : ''; |
138 | 141 | $hidem .= $hidepatrolled ? ' AND rc_patrolled=0' : ''; |
| 142 | + $hidem .= ( $hideanons && !$hideliu ) ? ' AND rc_user <> 0' : ''; |
139 | 143 | if ( $hidemyself ) { |
140 | 144 | if ( $wgUser->getID() ) { |
141 | 145 | $hidem .= ' AND rc_user <> '.$wgUser->getID(); |
— | — | @@ -195,6 +199,7 @@ |
196 | 200 | wfAppendToArrayIfNotDefault( 'limit', $limit , $defaults, $nondefaults); |
197 | 201 | wfAppendToArrayIfNotDefault( 'hideminor', $hideminor, $defaults, $nondefaults); |
198 | 202 | wfAppendToArrayIfNotDefault( 'hidebots', $hidebots, $defaults, $nondefaults); |
| 203 | + wfAppendToArrayIfNotDefault( 'hideanons', $hideanons, $defaults, $nondefaults ); |
199 | 204 | wfAppendToArrayIfNotDefault( 'hideliu', $hideliu, $defaults, $nondefaults); |
200 | 205 | wfAppendToArrayIfNotDefault( 'hidepatrolled', $hidepatrolled, $defaults, $nondefaults); |
201 | 206 | wfAppendToArrayIfNotDefault( 'hidemyself', $hidemyself, $defaults, $nondefaults); |
— | — | @@ -500,13 +505,15 @@ |
501 | 506 | array( 'hideminor' => 1-$options['hideminor'] ), $nondefaults); |
502 | 507 | $botLink = makeOptionsLink( $showhide[1-$options['hidebots']], |
503 | 508 | array( 'hidebots' => 1-$options['hidebots'] ), $nondefaults); |
| 509 | + $anonsLink = makeOptionsLink( $showhide[ 1 - $options['hideanons'] ], |
| 510 | + array( 'hideanons' => 1 - $options['hideanons'] ), $nondefaults ); |
504 | 511 | $liuLink = makeOptionsLink( $showhide[1-$options['hideliu']], |
505 | 512 | array( 'hideliu' => 1-$options['hideliu'] ), $nondefaults); |
506 | 513 | $patrLink = makeOptionsLink( $showhide[1-$options['hidepatrolled']], |
507 | 514 | array( 'hidepatrolled' => 1-$options['hidepatrolled'] ), $nondefaults); |
508 | 515 | $myselfLink = makeOptionsLink( $showhide[1-$options['hidemyself']], |
509 | 516 | array( 'hidemyself' => 1-$options['hidemyself'] ), $nondefaults); |
510 | | - $hl = wfMsg( 'showhideminor', $minorLink, $botLink, $liuLink, $patrLink, $myselfLink ); |
| 517 | + $hl = wfMsg( 'showhideminor', $minorLink, $botLink, $liuLink, $patrLink, $myselfLink, $anonsLink ); |
511 | 518 | |
512 | 519 | // show from this onward link |
513 | 520 | $now = $wgLang->timeanddate( wfTimestampNow(), true ); |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -393,6 +393,7 @@ |
394 | 394 | * Special:Export can now export a list of all contributors to an article (off by default) |
395 | 395 | * (bug 5372) Add number of files to Special:Statistics |
396 | 396 | * (bug 2871) Links to talk pages in watchlist editing view |
| 397 | +* (bug 5385) Allow hiding anonymous edits on Special:Recentchanges |
397 | 398 | |
398 | 399 | Misc.: |
399 | 400 | * PHP 4.1 compatibility fix: don't use new_link parameter to mysql_connect |
Index: trunk/phase3/languages/Messages.php |
— | — | @@ -784,7 +784,7 @@ |
785 | 785 | 'rcnote' => "Below are the last <strong>$1</strong> changes in last <strong>$2</strong> days.", |
786 | 786 | 'rcnotefrom' => "Below are the changes since <b>$2</b> (up to <b>$1</b> shown).", |
787 | 787 | 'rclistfrom' => "Show new changes starting from $1", |
788 | | -'showhideminor' => "$1 minor edits | $2 bots | $3 logged in users | $4 patrolled edits", |
| 788 | +'showhideminor' => "$1 minor edits | $2 bots | $3 logged in users | $6 anonymous users | $4 patrolled edits | $5 my edits", |
789 | 789 | 'rclinks' => "Show last $1 changes in last $2 days<br />$3", |
790 | 790 | 'rchide' => "in $4 form; $1 minor edits; $2 secondary namespaces; $3 multiple edits.", |
791 | 791 | 'rcliu' => "; $1 edits from logged in users", |