* (bug 18377) Time in Enhanced ChangesList lacking localisation
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Tue, 7 Apr 2009 06:43:39 +0000 (06:43 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Tue, 7 Apr 2009 06:43:39 +0000 (06:43 +0000)
RELEASE-NOTES
includes/ChangesList.php

index 80d3a47..b212ad3 100644 (file)
@@ -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
index 0629891..2f8413f 100644 (file)
@@ -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__ );