aboutsummaryrefslogtreecommitdiffstats
path: root/includes/changes
diff options
context:
space:
mode:
authorMatěj Suchánek <matejsuchanek97@gmail.com>2023-02-16 18:56:17 +0100
committerMatěj Suchánek <matejsuchanek97@gmail.com>2023-02-16 18:56:17 +0100
commit7cbebaeb8a09c68820c857b293dc985d1ce6fb47 (patch)
treef536caa66a0816213342d5692a5df83550428428 /includes/changes
parentbfedab2eb806da9c870d5ac379eaa9b240a94f15 (diff)
downloadmediawikicore-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.php7
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() );
}