Index: includes/SpecialRecentchangeslinked.php
===================================================================
--- includes/SpecialRecentchangeslinked.php (revision 13461)
+++ includes/SpecialRecentchangeslinked.php (working copy)
@@ -133,14 +133,15 @@
$wgOut->addHTML("< ".$sk->makeKnownLinkObj($nt, "", "redirect=no" )."
\n");
$note = wfMsg( "rcnote", $limit, $days );
$wgOut->addHTML( "
' . rcOptionsPanel( $defaults, $nondefaults ) . "\n" );
+ $wgOut->addHTML( '
' . rcOptionsPanel( $defaults, $nondefaults, $list->usePatrol() ) . "\n" );
$wgOut->addHTML( rcNamespaceForm( $namespace, $invert, $nondefaults, $any ) . '
'."\n");
}
// And now for the content
$sk = $wgUser->getSkin();
$wgOut->setSyndicated( true );
-
- $list = ChangesList::newFromUser( $wgUser );
if ( $wgAllowCategorizedRecentChanges ) {
$categories = trim ( $wgRequest->getVal ( 'categories' , "" ) ) ;
@@ -445,8 +444,8 @@
/**
* Used by Recentchangeslinked
*/
-function rcDayLimitLinks( $days, $limit, $page='Recentchanges', $more='', $doall = false, $minorLink = '',
- $botLink = '', $liuLink = '', $patrLink = '', $myselfLink = '' ) {
+function rcDayLimitLinks( $days, $limit, $usePatrol, $page='Recentchanges', $more='', $doall = false,
+ $minorLink = '', $botLink = '', $anonsLink = '', $liuLink = '', $myselfLink = '', $patrLink = '' ) {
if ($more != '') $more .= '&';
$cl = rcCountLink( 50, $days, $page, $more ) . ' | ' .
rcCountLink( 100, $days, $page, $more ) . ' | ' .
@@ -459,7 +458,16 @@
rcDaysLink( $limit, 14, $page, $more ) . ' | ' .
rcDaysLink( $limit, 30, $page, $more ) .
( $doall ? ( ' | ' . rcDaysLink( $limit, 0, $page, $more ) ) : '' );
- $shm = wfMsg( 'showhideminor', $minorLink, $botLink, $liuLink, $patrLink, $myselfLink );
+ $shm = null;
+ if ($usePatrol)
+ {
+ $shm = wfMsg( 'showhidepatrolled', $minorLink, $botLink, $anonsLink, $liuLink, $myselfLink,
+ $patrLink );
+ }
+ else
+ {
+ $shm = wfMsg( 'showhide', $minorLink, $botLink, $liuLink, $anonsLink, $myselfLink );
+ }
$note = wfMsg( 'rclinks', $cl, $dl, $shm );
return $note;
}
@@ -478,7 +486,7 @@
/**
* Creates the options panel
*/
-function rcOptionsPanel( $defaults, $nondefaults ) {
+function rcOptionsPanel( $defaults, $nondefaults, $usePatrol ) {
global $wgLang;
$options = $nondefaults + $defaults;
@@ -518,11 +526,19 @@
array( 'hideanons' => 1 - $options['hideanons'] ), $nondefaults );
$liuLink = makeOptionsLink( $showhide[1-$options['hideliu']],
array( 'hideliu' => 1-$options['hideliu'] ), $nondefaults);
- $patrLink = makeOptionsLink( $showhide[1-$options['hidepatrolled']],
- 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 );
+ $hl = null;
+ if ($usePatrol)
+ {
+ $patrLink = makeOptionsLink( $showhide[1-$options['hidepatrolled']],
+ array( 'hidepatrolled' => 1-$options['hidepatrolled'] ), $nondefaults);
+ $hl = wfMsg( 'showhidepatrolled', $minorLink, $botLink, $anonsLink, $liuLink, $myselfLink, $patrLink );
+ }
+ else
+ {
+ $hl = wfMsg( 'showhide', $minorLink, $botLink, $anonsLink, $liuLink, $myselfLink );
+ }
// show from this onward link
$now = $wgLang->timeanddate( wfTimestampNow(), true );
Index: languages/Messages.php
===================================================================
--- languages/Messages.php (revision 13461)
+++ languages/Messages.php (working copy)
@@ -784,7 +784,8 @@
'rcnote' => "Below are the last
$1 changes in last
$2 days.",
'rcnotefrom' => "Below are the changes since
$2 (up to
$1 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",
+'showhide' => "$1 minor edits | $2 bots | $3 anonymous users | $4 logged in users | $5 my edits",
+'showhidepatrolled' => "$1 minor edits | $2 bots | $3 anonymous users | $4 logged in users | $5 my edits | $6 patrolled edits",
'rclinks' => "Show last $1 changes in last $2 days
$3",
'rchide' => "in $4 form; $1 minor edits; $2 secondary namespaces; $3 multiple edits.",
'rcliu' => "; $1 edits from logged in users",
Index: languages/MessagesHe.php
===================================================================
--- languages/MessagesHe.php (revision 13461)
+++ languages/MessagesHe.php (working copy)
@@ -717,7 +717,8 @@
"rcnote" => "להלן
$1 השינויים האחרונים שבוצעו ב־$2 הימים האחרונים:",
"rcnotefrom" => "להלן
$1 השינויים האחרונים שבוצעו החל מתאריך
$2:",
"rclistfrom" => "הצג שינויים חדשים החל מ־$1",
-"showhideminor" => "$1 שינויים משניים | $2 בוטים | $3 משתמשים רשומים | $4 עריכות בדוקות | $5 עריכות שלי",
+"showhide" => "$1 שינויים משניים | $2 בוטים |$3 משתמשים אנונימיים | $4 משתמשים רשומים | $5 עריכות שלי",
+'showhidepatrolled' => "$1 שינויים משניים | $2 בוטים |$3 משתמשים אנונימיים | $4 משתמשים רשומים | $5 עריכות שלי | $6 עריכות בדוקות",
"rclinks" => "הצג $1 שינויים אחרונים ב-$2 הימים האחרונים.
$3",
"rchide" => "ב-$4 טפסים; $1 שינויים משניים; $2 מרחבי שמות מיוחדים; $3 שינויים כפולים.",
'rcliu' => "; $1 עריכות ממשתמשים רשומים",