...and it comes with free message adaptations for French and German, because I'm nice like that
* (bug 2871) Links to talk pages in watchlist editing view
* (bug 5385) Allow hiding anonymous edits on Special:Recentchanges
* (bug 2544) Illogical error reporting order in Special:Userlogin
+* (bug 5409) Hide "show/hide patrolled edits" in Special:Recentchanges if patrolling
+ is disabled
Misc.:
* PHP 4.1 compatibility fix: don't use new_link parameter to mysql_connect
$hidem = $hideminor ? 'AND rc_minor = 0' : '';
$hidem .= $hidebots ? ' AND rc_bot = 0' : '';
$hidem .= $hideliu ? ' AND rc_user = 0' : '';
- $hidem .= $hidepatrolled ? ' AND rc_patrolled = 0' : '';
+ $hidem .= ( $wgUseRCPatrol && $hidepatrolled ) ? ' AND rc_patrolled = 0' : '';
$hidem .= $hideanons ? ' AND rc_user != 0' : '';
if( $hidemyself ) {
* Creates the options panel
*/
function rcOptionsPanel( $defaults, $nondefaults ) {
- global $wgLang;
+ global $wgLang, $wgUseRCPatrol;
$options = $nondefaults + $defaults;
array( 'hidepatrolled' => 1-$options['hidepatrolled'] ), $nondefaults);
$myselfLink = makeOptionsLink( $showhide[1-$options['hidemyself']],
array( 'hidemyself' => 1-$options['hidemyself'] ), $nondefaults);
- $hl = wfMsg( 'showhideminor', $minorLink, $botLink, $liuLink, $patrLink, $myselfLink, $anonsLink );
-
+
+ $links[] = wfMsgHtml( 'rcshowhideminor', $minorLink );
+ $links[] = wfMsgHtml( 'rcshowhidebots', $botLink );
+ $links[] = wfMsgHtml( 'rcshowhideanons', $anonsLink );
+ $links[] = wfMsgHtml( 'rcshowhideliu', $liuLink );
+ if( $wgUseRCPatrol )
+ $links[] = wfMsgHtml( 'rcshowhidepatr', $patrLink );
+ $links[] = wfMsgHtml( 'rcshowhidemine', $myselfLink );
+ $hl = implode( ' | ', $links );
+
// show from this onward link
$now = $wgLang->timeanddate( wfTimestampNow(), true );
$tl = makeOptionsLink( $now, array( 'from' => wfTimestampNow()), $nondefaults );
'rcnote' => "Below are the last <strong>$1</strong> changes in last <strong>$2</strong> days.",
'rcnotefrom' => "Below are the changes since <b>$2</b> (up to <b>$1</b> shown).",
'rclistfrom' => "Show new changes starting from $1",
-'showhideminor' => "$1 minor edits | $2 bots | $3 logged in users | $6 anonymous users | $4 patrolled edits | $5 my edits",
+'rcshowhideminor' => '$1 minor edits',
+'rcshowhidebots' => '$1 bots',
+'rcshowhideliu' => '$1 logged-in users',
+'rcshowhideanons' => '$1 anonymous users',
+'rcshowhidepatr' => '$1 patrolled edits',
+'rcshowhidemine' => '$1 my edits',
'rclinks' => "Show last $1 changes in last $2 days<br />$3",
'rchide' => "in $4 form; $1 minor edits; $2 secondary namespaces; $3 multiple edits.",
'rcliu' => "; $1 edits from logged in users",
"thumbnail-more" => "vergrößern",
"and" => "und",
"rchide" => "in $4 form; $1 kleine Änderungen; $2 sekundäre Namensräume; $3 mehrfache Änderungen.",
-"showhideminor" => "kleine Änderungen $1 | $2 bots | $3 logged in users | $4 patrolled edits",
+'rcshowhideminor' => 'Kleine Änderungen $1',
+'rcshowhidebots' => '$1 bots',
+'rcshowhideliu' => 'Angemeldete Benutzer $1',
+'rcshowhideanons' => '$1 anonymous users',
+'rcshowhidepatr' => '$1 patrolled edits',
+'rcshowhidemine' => 'Eigene Beiträge $1',
"rcliu" => "$1 Änderungen durch eingeloggte Benutzer",
"uploaddisabled" => "Entschuldigung, das Hochladen ist deaktiviert.",
"deadendpages" => "Sackgassenartikel",
'rcnote' => 'Voici les <strong>$1</strong> dernières modifications effectuées au cours des <strong>$2</strong> derniers jours.',
'rcnotefrom' => 'Voici les modifications effectuées depuis le <strong>$2</strong> (<b>$1</b> au maximum).',
'rclistfrom' => 'Afficher les nouvelles modifications depuis le $1.',
-'showhideminor' => '$1 modifications mineures | $2 robots | $3 utilisateurs enregistrés | $4 patrolled edits',
+'rcshowhideminor' => '$1 modifications mineures',
+'rcshowhidebots' => '$1 robots',
+'rcshowhideliu' => '$1 utilisateurs enregistrés',
+'rcshowhideanons' => '$1 anonymous users',
+'rcshowhidepatr' => '$1 patrolled edits',
+'rcshowhidemine' => '$1 mes contributions',
'rclinks' => 'Afficher les $1 dernières modifications effectuées au cours des $2 derniers jours; $3 modifications mineures.',
'rchide' => 'in $4 form; $1 modifications mineures; $2 espaces secondaires; $3 modifications multiples.', // FIXME
'rcliu' => '; $1 modifications par des contributeurs connectés',