Use content language in formatting of dates in revertpage message
authorBrian Wolff <bawolff@users.mediawiki.org>
Tue, 28 Jun 2011 04:47:59 +0000 (04:47 +0000)
committerBrian Wolff <bawolff@users.mediawiki.org>
Tue, 28 Jun 2011 04:47:59 +0000 (04:47 +0000)
(rollback revert edit summary) and do not adjust for user timezone.

RELEASE-NOTES-1.19
includes/Article.php

index 206bf86..21e7fab 100644 (file)
@@ -127,6 +127,8 @@ production.
   "vectorTabs" portlets.
 * (bug 8556) Incorrect session failure warning on preview-on-open 
   namespaces (categories) when combined with $wgRawHtml.
+* Use content language in formatting of dates in revertpage message
+  (rollback revert edit summary) and do not adjust for user timezone.
 
 === API changes in 1.19 ===
 * BREAKING CHANGE: action=watch now requires POST and token.
index eed8aa1..76b70f4 100644 (file)
@@ -3237,7 +3237,7 @@ class Article {
         * doRollback() instead.
         */
        public function commitRollback( $fromP, $summary, $bot, &$resultDetails ) {
-               global $wgUseRCPatrol, $wgUser, $wgLang;
+               global $wgUseRCPatrol, $wgUser, $wgContLang;
 
                $dbw = wfGetDB( DB_MASTER );
 
@@ -3318,8 +3318,8 @@ class Article {
                # Allow the custom summary to use the same args as the default message
                $args = array(
                        $target->getUserText(), $from, $s->rev_id,
-                       $wgLang->timeanddate( wfTimestamp( TS_MW, $s->rev_timestamp ), true ),
-                       $current->getId(), $wgLang->timeanddate( $current->getTimestamp() )
+                       $wgContLang->timeanddate( wfTimestamp( TS_MW, $s->rev_timestamp ) ),
+                       $current->getId(), $wgContLang->timeanddate( $current->getTimestamp() )
                );
                $summary = wfMsgReplaceArgs( $summary, $args );