X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fchanges%2FEnhancedChangesList.php;h=1727da02aa10d167c1b3776b5d6332d7c0a0b6ed;hb=2082fd8bab7414a6471ccbb98a939ecb3c7ae13a;hp=483752564141d39ba9f814e8cbf9ffa3c81c5635;hpb=757a6ae690f3ff95cf7bf7b7505f9577d542da43;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/changes/EnhancedChangesList.php b/includes/changes/EnhancedChangesList.php index 4837525641..1727da02aa 100644 --- a/includes/changes/EnhancedChangesList.php +++ b/includes/changes/EnhancedChangesList.php @@ -57,14 +57,9 @@ 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( - $cacheEntry->mAttribs['rc_timestamp'], + $baseRC->mAttribs['rc_timestamp'], $this->getUser() ); @@ -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 ); @@ -433,6 +433,7 @@ class EnhancedChangesList extends ChangesList { $r .= $users; $r .= $this->numberofWatchingusers( $block[0]->numberofWatchingusers ); + $r .= ''; # Sub-entries foreach ( $block as $rcObj ) {