dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
795bbed
)
NS_MEDIA also always has page_id 0
author
Aryeh Gregor
<ayg@aryeh.name>
Sun, 5 May 2019 08:37:01 +0000
(11:37 +0300)
committer
Aryeh Gregor
<ayg@aryeh.name>
Sun, 5 May 2019 08:37:01 +0000
(11:37 +0300)
Change-Id: I0047e5f8e367fe3e8433e715ea56616a6f8dab85
includes/cache/LinkCache.php
patch
|
blob
|
history
diff --git
a/includes/cache/LinkCache.php
b/includes/cache/LinkCache.php
index
c13f95e
..
33feee2
100644
(file)
--- a/
includes/cache/LinkCache.php
+++ b/
includes/cache/LinkCache.php
@@
-231,9
+231,7
@@
class LinkCache {
*/
public function addLinkObj( LinkTarget $nt ) {
$key = $this->titleFormatter->getPrefixedDBkey( $nt );
- if ( $this->isBadLink( $key ) || $nt->isExternal()
- || $nt->inNamespace( NS_SPECIAL )
- ) {
+ if ( $this->isBadLink( $key ) || $nt->isExternal() || $nt->getNamespace() < 0 ) {
return 0;
}
$id = $this->getGoodLinkID( $key );