From: Ilmari Karonen Date: Sat, 13 Dec 2008 21:21:40 +0000 (+0000) Subject: (Actually, we can simplify that a bit more.) X-Git-Tag: 1.31.0-rc.0~43988 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=0c9e9c8e7affc4ba9fd520cd64e7b27d9dba65c4;p=lhc%2Fweb%2Fwiklou.git (Actually, we can simplify that a bit more.) --- diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 95c34f41ee..7013fd0b3b 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -1842,7 +1842,7 @@ class Parser # # FIXME: isAlwaysKnown() can be expensive for file links; we should really do # batch file existence checks for NS_FILE and NS_MEDIA - if( !$nt->isExternal() && $nt->isAlwaysKnown() ) { + if( $iw == '' && $nt->isAlwaysKnown() ) { $s .= $this->makeKnownLinkHolder( $nt, $text, '', $trail, $prefix ); } else { $s .= $holders->makeHolder( $nt, $text, '', $trail, $prefix );