diff options
author | Matěj Suchánek <matejsuchanek97@gmail.com> | 2023-02-16 18:56:17 +0100 |
---|---|---|
committer | Matěj Suchánek <matejsuchanek97@gmail.com> | 2023-02-16 18:56:17 +0100 |
commit | 7cbebaeb8a09c68820c857b293dc985d1ce6fb47 (patch) | |
tree | f536caa66a0816213342d5692a5df83550428428 /includes/changes | |
parent | bfedab2eb806da9c870d5ac379eaa9b240a94f15 (diff) | |
download | mediawikicore-7cbebaeb8a09c68820c857b293dc985d1ce6fb47.tar.gz mediawikicore-7cbebaeb8a09c68820c857b293dc985d1ce6fb47.zip |
Simplify RCCacheEntryFactory::buildCLink
This branch has the identical output as the default one.
There is probably no reason for unpatrolled new pages
to be handled separately (and skip check for special pages).
Change-Id: I1f2f2dcc6fe9f6b4a6b2f6d920adb6eede5fdc1f
Diffstat (limited to 'includes/changes')
-rw-r--r-- | includes/changes/RCCacheEntryFactory.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/includes/changes/RCCacheEntryFactory.php b/includes/changes/RCCacheEntryFactory.php index eee86352313b..fbc369a53bdb 100644 --- a/includes/changes/RCCacheEntryFactory.php +++ b/includes/changes/RCCacheEntryFactory.php @@ -119,11 +119,8 @@ class RCCacheEntryFactory { private function buildCLink( RCCacheEntry $cacheEntry ) { $type = $cacheEntry->mAttribs['rc_type']; - // New unpatrolled pages - if ( $cacheEntry->unpatrolled && $type == RC_NEW ) { - $clink = $this->linkRenderer->makeKnownLink( $cacheEntry->getTitle() ); // Log entries - } elseif ( $type == RC_LOG ) { + if ( $type == RC_LOG ) { $logType = $cacheEntry->mAttribs['rc_log_type']; if ( $logType ) { @@ -136,7 +133,7 @@ class RCCacheEntryFactory { } elseif ( $cacheEntry->mAttribs['rc_namespace'] == NS_SPECIAL ) { wfDebugLog( 'recentchanges', 'Unexpected special page in recentchanges' ); $clink = ''; - // Edits + // Edits and everything else } else { $clink = $this->linkRenderer->makeKnownLink( $cacheEntry->getTitle() ); } |