Split part of EnhancedChangesList::recentChangesLine into new method
Change-Id: I57f22ac0969fe3ba324a2b9d107c6f2d9968769c
This commit is contained in:
parent
37cf86adf7
commit
7c4278f3f1
1 changed files with 13 additions and 6 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue