From 322ecffcd1f5100ca53e8412364a55e156a9b617 Mon Sep 17 00:00:00 2001 From: aude Date: Tue, 26 Nov 2013 12:32:37 +0100 Subject: [PATCH] Create cachedEntry after processing change block Change-Id: I8b6b85104f15eb8325abace9b0a0653e16d748b9 --- includes/changes/EnhancedChangesList.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/includes/changes/EnhancedChangesList.php b/includes/changes/EnhancedChangesList.php index 7208da3480..1727da02aa 100644 --- a/includes/changes/EnhancedChangesList.php +++ b/includes/changes/EnhancedChangesList.php @@ -57,11 +57,6 @@ class EnhancedChangesList extends ChangesList { public function recentChangesLine( &$baseRC, $watched = false ) { wfProfileIn( __METHOD__ ); - # Create a specialised object - $cacheEntry = RCCacheEntry::newFromParent( $baseRC ); - - $curIdEq = array( 'curid' => $cacheEntry->mAttribs['rc_cur_id'] ); - # If it's a new day, add the headline and flush the cache $date = $this->getLanguage()->userDate( $baseRC->mAttribs['rc_timestamp'], @@ -78,6 +73,11 @@ class EnhancedChangesList extends ChangesList { $this->lastdate = $date; } + # Create a specialised object + $cacheEntry = RCCacheEntry::newFromParent( $baseRC ); + + $curIdEq = array( 'curid' => $cacheEntry->mAttribs['rc_cur_id'] ); + # Should patrol-related stuff be shown? $cacheEntry->unpatrolled = $this->showAsUnpatrolled( $cacheEntry ); -- 2.20.1