(bug 5696) Add a third parameter, $3, to "rcnote", passing the current time formatted...
authorRob Church <robchurch@users.mediawiki.org>
Mon, 1 May 2006 00:12:07 +0000 (00:12 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Mon, 1 May 2006 00:12:07 +0000 (00:12 +0000)
RELEASE-NOTES
includes/SpecialRecentchanges.php
includes/SpecialRecentchangeslinked.php
includes/SpecialWatchlist.php
languages/Messages.php

index 30b0f6d..3ddc2e2 100644 (file)
@@ -174,6 +174,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   user rights
 * (bug 137) Commented out translations for copyrightwarning which mention GNU FDL
 * (bug 5723) Don't count pages linked to from the MediaWiki namespace as "wanted"
+* (bug 5696) Add a third parameter, $3, to "rcnote", passing the current time
+  formatted according to the current user's settings
 
 == Compatibility ==
 
index 70ad0bc..a3332e8 100644 (file)
@@ -499,7 +499,7 @@ function rcOptionsPanel( $defaults, $nondefaults ) {
        if( $options['from'] )
                $note = wfMsg( 'rcnotefrom', $wgLang->formatNum( $options['limit'] ), $wgLang->timeanddate( $options['from'], true ) );
        else
-               $note = wfMsg( 'rcnote', $wgLang->formatNum( $options['limit'] ), $wgLang->formatNum( $options['days'] ) );
+               $note = wfMsg( 'rcnote', $wgLang->formatNum( $options['limit'] ), $wgLang->formatNum( $options['days'] ), $wgLang->timeAndDate( wfTimestampNow(), true ) );
 
        // limit links
        $cl = '';
index c543f89..79654b5 100644 (file)
@@ -15,7 +15,7 @@ require_once( 'SpecialRecentchanges.php' );
  * @param string $par parent page we will look at
  */
 function wfSpecialRecentchangeslinked( $par = NULL ) {
-       global $wgUser, $wgOut, $wgContLang, $wgRequest;
+       global $wgUser, $wgOut, $wgLang, $wgContLang, $wgRequest;
        $fname = 'wfSpecialRecentchangeslinked';
 
        $days = $wgRequest->getInt( 'days' );
@@ -131,7 +131,7 @@ ORDER BY rc_timestamp DESC
        $res = $dbr->query( $sql, $fname );
 
        $wgOut->addHTML("&lt; ".$sk->makeKnownLinkObj($nt, "", "redirect=no" )."<br />\n");
-       $note = wfMsg( "rcnote", $limit, $days );
+       $note = wfMsg( "rcnote", $limit, $days, $wgLang->timeAndDate( wfTimestampNow(), true ) );
        $wgOut->addHTML( "<hr />\n{$note}\n<br />" );
 
        $note = rcDayLimitlinks( $days, $limit, "Recentchangeslinked",
index 4f37fc0..a80c11f 100644 (file)
@@ -315,7 +315,7 @@ function wfSpecialWatchlist( $par ) {
 
        if($days >= 1)
                $wgOut->addWikiText( wfMsg( 'rcnote', $wgLang->formatNum( $numRows ),
-                       $wgLang->formatNum( $days ) ) . '<br />' , false );
+                       $wgLang->formatNum( $days ), $wgLang->timeAndDate( wfTimestampNow(), true ) ) . '<br />' , false );
        elseif($days > 0)
                $wgOut->addWikiText( wfMsg( 'wlnote', $wgLang->formatNum( $numRows ),
                        $wgLang->formatNum( round($days*24) ) ) . '<br />' , false );
index 8045c07..9a0bfe8 100644 (file)
@@ -789,7 +789,7 @@ Unselected groups will not be changed. You can deselect a group with CTRL + Left
 'recentchanges' => 'Recent changes',
 'recentchanges-url' => 'Special:Recentchanges',
 'recentchangestext' => 'Track the most recent changes to the wiki on this page.',
-'rcnote'               => "Below are the last <strong>$1</strong> changes in last <strong>$2</strong> days.",
+'rcnote'               => "Below are the last <strong>$1</strong> changes in the last <strong>$2</strong> days, as of $3.",
 'rcnotefrom'   => "Below are the changes since <b>$2</b> (up to <b>$1</b> shown).",
 'rclistfrom'   => "Show new changes starting from $1",
 'rcshowhideminor' => '$1 minor edits',