r90936 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90935‎ | r90936 | r90937 >
Date:04:47, 28 June 2011
Author:bawolff
Status:ok
Tags:
Comment:
Use content language in formatting of dates in revertpage message
(rollback revert edit summary) and do not adjust for user timezone.
Modified paths:
  • /trunk/phase3/RELEASE-NOTES-1.19 (modified) (history)
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/RELEASE-NOTES-1.19
@@ -127,6 +127,8 @@
128128 "vectorTabs" portlets.
129129 * (bug 8556) Incorrect session failure warning on preview-on-open
130130 namespaces (categories) when combined with $wgRawHtml.
 131+* Use content language in formatting of dates in revertpage message
 132+ (rollback revert edit summary) and do not adjust for user timezone.
131133
132134 === API changes in 1.19 ===
133135 * BREAKING CHANGE: action=watch now requires POST and token.
Index: trunk/phase3/includes/Article.php
@@ -3237,7 +3237,7 @@
32383238 * doRollback() instead.
32393239 */
32403240 public function commitRollback( $fromP, $summary, $bot, &$resultDetails ) {
3241 - global $wgUseRCPatrol, $wgUser, $wgLang;
 3241+ global $wgUseRCPatrol, $wgUser, $wgContLang;
32423242
32433243 $dbw = wfGetDB( DB_MASTER );
32443244
@@ -3318,8 +3318,8 @@
33193319 # Allow the custom summary to use the same args as the default message
33203320 $args = array(
33213321 $target->getUserText(), $from, $s->rev_id,
3322 - $wgLang->timeanddate( wfTimestamp( TS_MW, $s->rev_timestamp ), true ),
3323 - $current->getId(), $wgLang->timeanddate( $current->getTimestamp() )
 3322+ $wgContLang->timeanddate( wfTimestamp( TS_MW, $s->rev_timestamp ) ),
 3323+ $current->getId(), $wgContLang->timeanddate( $current->getTimestamp() )
33243324 );
33253325 $summary = wfMsgReplaceArgs( $summary, $args );
33263326

Status & tagging log