From a50a2731cb7abced877ef24c2fd9ea0677e499b4 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Thu, 19 May 2016 19:01:48 -0700 Subject: [PATCH] LinkCache: Don't try looking up NS_SPECIAL Change-Id: I1afe8c780c3b12ae806ac19c4efb37c7033951ca --- includes/cache/LinkCache.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/cache/LinkCache.php b/includes/cache/LinkCache.php index de44f9bd85..3fd29f3270 100644 --- a/includes/cache/LinkCache.php +++ b/includes/cache/LinkCache.php @@ -230,7 +230,9 @@ class LinkCache { */ public function addLinkObj( LinkTarget $nt ) { $key = $this->titleFormatter->getPrefixedDBkey( $nt ); - if ( $this->isBadLink( $key ) || $nt->isExternal() ) { + if ( $this->isBadLink( $key ) || $nt->isExternal() + || $nt->inNamespace( NS_SPECIAL ) + ) { return 0; } $id = $this->getGoodLinkID( $key ); -- 2.20.1