From: aude Date: Tue, 26 Nov 2013 10:35:24 +0000 (+0100) Subject: Get date in EnhancedChangesList::recentChangesLine from baseRC X-Git-Tag: 1.31.0-rc.0~17890^2~1 X-Git-Url: http://git.cyclocoop.org/%27.%28%24current%20%3E%202?a=commitdiff_plain;h=8f22e5eda0b48e9a13cf3a2c0107551becfd8085;p=lhc%2Fweb%2Fwiklou.git Get date in EnhancedChangesList::recentChangesLine from baseRC $cachedEntry gets set with baseRC, so baseRC timestamp is the same as $cachedEntry timestamp. Doing things this way makes it more feasible to split out some of the change formatting code. Change-Id: I1cae6174c827802d525bb95ed152c64008ce7360 --- diff --git a/includes/changes/EnhancedChangesList.php b/includes/changes/EnhancedChangesList.php index c8439beedb..7208da3480 100644 --- a/includes/changes/EnhancedChangesList.php +++ b/includes/changes/EnhancedChangesList.php @@ -64,7 +64,7 @@ class EnhancedChangesList extends ChangesList { # If it's a new day, add the headline and flush the cache $date = $this->getLanguage()->userDate( - $cacheEntry->mAttribs['rc_timestamp'], + $baseRC->mAttribs['rc_timestamp'], $this->getUser() );