From: Niklas Laxström Date: Tue, 7 Apr 2009 06:43:39 +0000 (+0000) Subject: * (bug 18377) Time in Enhanced ChangesList lacking localisation X-Git-Tag: 1.31.0-rc.0~42205 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=c0b8603ca6901dd7b6df6aab7a50882d96d743a5;p=lhc%2Fweb%2Fwiklou.git * (bug 18377) Time in Enhanced ChangesList lacking localisation --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 80d3a474d5..b212ad33a8 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -328,6 +328,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN an IP address * (bug 18009) $wgHooks and $wgExtensionFunctions now support closures * (bug 17948) Maintenance scripts now exit(0) or exit(1) as appropriate +* (bug 18377) Time in Enhanced ChangesList lacking localisation == API changes in 1.15 == * (bug 16858) Revamped list=deletedrevs to make listing deleted contributions diff --git a/includes/ChangesList.php b/includes/ChangesList.php index 06298914c4..2f8413f78c 100644 --- a/includes/ChangesList.php +++ b/includes/ChangesList.php @@ -368,7 +368,7 @@ class OldChangesList extends ChangesList { * Format a line using the old system (aka without any javascript). */ public function recentChangesLine( &$rc, $watched = false, $linenumber = NULL ) { - global $wgContLang, $wgLang, $wgRCShowChangedSize, $wgUser; + global $wgLang, $wgRCShowChangedSize, $wgUser; wfProfileIn( __METHOD__ ); # Should patrol-related stuff be shown? $unpatrolled = $wgUser->useRCPatrol() && !$rc->mAttribs['rc_patrolled']; @@ -473,7 +473,7 @@ class EnhancedChangesList extends ChangesList { * Format a line for enhanced recentchange (aka with javascript and block of lines). */ public function recentChangesLine( &$baseRC, $watched = false ) { - global $wgLang, $wgContLang, $wgUser; + global $wgLang, $wgUser; wfProfileIn( __METHOD__ ); @@ -547,7 +547,7 @@ class EnhancedChangesList extends ChangesList { $showdifflinks = false; } - $time = $wgContLang->time( $rc_timestamp, true, true ); + $time = $wgLang->time( $rc_timestamp, true, true ); $rc->watched = $watched; $rc->link = $clink; $rc->timestamp = $time; @@ -918,7 +918,7 @@ class EnhancedChangesList extends ChangesList { * @return string a HTML formated line (generated using $r) */ protected function recentChangesBlockLine( $rcObj ) { - global $wgContLang, $wgRCShowChangedSize; + global $wgRCShowChangedSize; wfProfileIn( __METHOD__ );