* (bug 22935) image/x-ms-bmp mime type added for BMP files
* (bug 23024) Special:ListFiles now escapes file names correctly
* (bug 22867) "View source" tab is now only displayed if there's source text
+* (bug 19393) Feeds now format dates in user language rather than content
+ language
=== API changes in 1.17 ===
* (bug 22738) Allow filtering by action type on query=logevent
* @return String
*/
public static function formatDiffRow( $title, $oldid, $newid, $timestamp, $comment, $actiontext='' ) {
- global $wgFeedDiffCutoff, $wgContLang, $wgUser;
+ global $wgFeedDiffCutoff, $wgLang, $wgUser;
wfProfileIn( __METHOD__ );
$skin = $wgUser->getSkin();
wfProfileIn( __METHOD__."-dodiff" );
#$diffText = $de->getDiff( wfMsg( 'revisionasof',
- # $wgContLang->timeanddate( $timestamp ),
- # $wgContLang->date( $timestamp ),
- # $wgContLang->time( $timestamp ) ),
+ # $wgLang->timeanddate( $timestamp ),
+ # $wgLang->date( $timestamp ),
+ # $wgLang->time( $timestamp ) ),
# wfMsg( 'currentrev' ) );
// Don't bother generating the diff if we won't be able to show it
$diffText = $de->getDiff(
wfMsg( 'previousrevision' ), // hack
wfMsg( 'revisionasof',
- $wgContLang->timeanddate( $timestamp ),
- $wgContLang->date( $timestamp ),
- $wgContLang->time( $timestamp ) ) );
+ $wgLang->timeanddate( $timestamp ),
+ $wgLang->date( $timestamp ),
+ $wgLang->time( $timestamp ) ) );
}
if ( ( strlen( $diffText ) > $wgFeedDiffCutoff ) || ( $wgFeedDiffCutoff <= 0 ) ) {