Index: trunk/extensions/ParserFunctions/ParserFunctions.php |
— | — | @@ -313,6 +313,13 @@ |
314 | 314 | } |
315 | 315 | $parser->mOutput->addImage($file->getName()); |
316 | 316 | return $file->exists() ? $then : $else; |
| 317 | + } elseif( $title->getNamespace() == NS_SPECIAL || $title->isExternal() ) { |
| 318 | + // Specials and interwikis... |
| 319 | + // Currently these always return false, though perhaps |
| 320 | + // they should be able to do some checks? |
| 321 | + // |
| 322 | + // In any case, don't register them in local link tables as below... |
| 323 | + return $else; |
317 | 324 | } else { |
318 | 325 | $pdbk = $title->getPrefixedDBkey(); |
319 | 326 | $lc = LinkCache::singleton(); |