Index: trunk/phase3/includes/FeedUtils.php |
— | — | @@ -86,7 +86,7 @@ |
87 | 87 | * @return String |
88 | 88 | */ |
89 | 89 | public static function formatDiffRow( $title, $oldid, $newid, $timestamp, $comment, $actiontext='' ) { |
90 | | - global $wgFeedDiffCutoff, $wgContLang, $wgUser; |
| 90 | + global $wgFeedDiffCutoff, $wgLang, $wgUser; |
91 | 91 | wfProfileIn( __METHOD__ ); |
92 | 92 | |
93 | 93 | $skin = $wgUser->getSkin(); |
— | — | @@ -108,9 +108,9 @@ |
109 | 109 | wfProfileIn( __METHOD__."-dodiff" ); |
110 | 110 | |
111 | 111 | #$diffText = $de->getDiff( wfMsg( 'revisionasof', |
112 | | - # $wgContLang->timeanddate( $timestamp ), |
113 | | - # $wgContLang->date( $timestamp ), |
114 | | - # $wgContLang->time( $timestamp ) ), |
| 112 | + # $wgLang->timeanddate( $timestamp ), |
| 113 | + # $wgLang->date( $timestamp ), |
| 114 | + # $wgLang->time( $timestamp ) ), |
115 | 115 | # wfMsg( 'currentrev' ) ); |
116 | 116 | |
117 | 117 | // Don't bother generating the diff if we won't be able to show it |
— | — | @@ -119,9 +119,9 @@ |
120 | 120 | $diffText = $de->getDiff( |
121 | 121 | wfMsg( 'previousrevision' ), // hack |
122 | 122 | wfMsg( 'revisionasof', |
123 | | - $wgContLang->timeanddate( $timestamp ), |
124 | | - $wgContLang->date( $timestamp ), |
125 | | - $wgContLang->time( $timestamp ) ) ); |
| 123 | + $wgLang->timeanddate( $timestamp ), |
| 124 | + $wgLang->date( $timestamp ), |
| 125 | + $wgLang->time( $timestamp ) ) ); |
126 | 126 | } |
127 | 127 | |
128 | 128 | if ( ( strlen( $diffText ) > $wgFeedDiffCutoff ) || ( $wgFeedDiffCutoff <= 0 ) ) { |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -73,6 +73,8 @@ |
74 | 74 | * (bug 22935) image/x-ms-bmp mime type added for BMP files |
75 | 75 | * (bug 23024) Special:ListFiles now escapes file names correctly |
76 | 76 | * (bug 22867) "View source" tab is now only displayed if there's source text |
| 77 | +* (bug 19393) Feeds now format dates in user language rather than content |
| 78 | + language |
77 | 79 | |
78 | 80 | === API changes in 1.17 === |
79 | 81 | * (bug 22738) Allow filtering by action type on query=logevent |