r44543 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r44542‎ | r44543 | r44544 >
Date:21:21, 13 December 2008
Author:vyznev
Status:ok
Tags:
Comment:
(Actually, we can simplify that a bit more.)
Modified paths:
  • /trunk/phase3/includes/parser/Parser.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/parser/Parser.php
@@ -1842,7 +1842,7 @@
18431843 #
18441844 # FIXME: isAlwaysKnown() can be expensive for file links; we should really do
18451845 # batch file existence checks for NS_FILE and NS_MEDIA
1846 - if( !$nt->isExternal() && $nt->isAlwaysKnown() ) {
 1846+ if( $iw == '' && $nt->isAlwaysKnown() ) {
18471847 $s .= $this->makeKnownLinkHolder( $nt, $text, '', $trail, $prefix );
18481848 } else {
18491849 $s .= $holders->makeHolder( $nt, $text, '', $trail, $prefix );

Status & tagging log