http://www.mediawiki.org/wiki/Special:Code/MediaWiki/90936
Revision: 90936
Author: bawolff
Date: 2011-06-28 04:47:59 +0000 (Tue, 28 Jun 2011)
Log Message:
-----------
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
trunk/phase3/includes/Article.php
Modified: trunk/phase3/RELEASE-NOTES-1.19
===================================================================
--- trunk/phase3/RELEASE-NOTES-1.19 2011-06-28 04:19:32 UTC (rev 90935)
+++ trunk/phase3/RELEASE-NOTES-1.19 2011-06-28 04:47:59 UTC (rev 90936)
@@ -127,6 +127,8 @@
"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.
Modified: trunk/phase3/includes/Article.php
===================================================================
--- trunk/phase3/includes/Article.php 2011-06-28 04:19:32 UTC (rev 90935)
+++ trunk/phase3/includes/Article.php 2011-06-28 04:47:59 UTC (rev 90936)
@@ -3237,7 +3237,7 @@
* 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 @@
# 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 );
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs