From: aude Date: Tue, 8 Apr 2014 08:40:04 +0000 (+0200) Subject: Split part of EnhancedChangesList::recentChangesLine into new method X-Git-Tag: 1.31.0-rc.0~16316^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%7B%7B%20url_for%28%27admin_users%27%29%20%7D%7D?a=commitdiff_plain;h=7c4278f3f109e030b6313cd1ba513157c5fba224;p=lhc%2Fweb%2Fwiklou.git Split part of EnhancedChangesList::recentChangesLine into new method Change-Id: I57f22ac0969fe3ba324a2b9d107c6f2d9968769c --- diff --git a/includes/changes/EnhancedChangesList.php b/includes/changes/EnhancedChangesList.php index feb6d7b2bf..6c4260160c 100644 --- a/includes/changes/EnhancedChangesList.php +++ b/includes/changes/EnhancedChangesList.php @@ -107,9 +107,20 @@ class EnhancedChangesList extends ChangesList { } $cacheEntry = $this->cacheEntryFactory->newFromRecentChange( $baseRC, $watched ); + $this->addCacheEntry( $cacheEntry ); - # Put accumulated information into the cache, for later display - # Page moves go on their own line + wfProfileOut( __METHOD__ ); + + return $ret; + } + + /** + * Put accumulated information into the cache, for later display. + * Page moves go on their own line. + * + * @param RCCacheEntry $cacheEntry + */ + protected function addCacheEntry( RCCacheEntry $cacheEntry ) { $title = $cacheEntry->getTitle(); $secureName = $title->getPrefixedDBkey(); @@ -132,10 +143,6 @@ class EnhancedChangesList extends ChangesList { array_push( $this->rc_cache[$secureName], $cacheEntry ); } - - wfProfileOut( __METHOD__ ); - - return $ret; } /**