Split part of EnhancedChangesList::recentChangesLine into new method

Change-Id: I57f22ac0969fe3ba324a2b9d107c6f2d9968769c
This commit is contained in:
aude 2014-04-08 10:40:04 +02:00 committed by Aude
parent 37cf86adf7
commit 7c4278f3f1

View file

@ -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;
}
/**