From: Kunal Mehta Date: Fri, 20 May 2016 02:01:48 +0000 (-0700) Subject: LinkCache: Don't try looking up NS_SPECIAL X-Git-Tag: 1.31.0-rc.0~6800 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=a50a2731cb7abced877ef24c2fd9ea0677e499b4;p=lhc%2Fweb%2Fwiklou.git LinkCache: Don't try looking up NS_SPECIAL Change-Id: I1afe8c780c3b12ae806ac19c4efb37c7033951ca --- 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 );