Aude has uploaded a new change for review.
https://gerrit.wikimedia.org/r/97707
Change subject: Get date in EnhancedChangesList::recentChangesLine from baseRC
......................................................................
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
---
M includes/changes/EnhancedChangesList.php
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/07/97707/1
diff --git a/includes/changes/EnhancedChangesList.php
b/includes/changes/EnhancedChangesList.php
index c8439be..7208da3 100644
--- a/includes/changes/EnhancedChangesList.php
+++ b/includes/changes/EnhancedChangesList.php
@@ -64,7 +64,7 @@
# 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()
);
--
To view, visit https://gerrit.wikimedia.org/r/97707
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I1cae6174c827802d525bb95ed152c64008ce7360
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Aude <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits