From: Gabriel Wicke Date: Thu, 27 May 2004 01:10:01 +0000 (+0000) Subject: image link handling X-Git-Tag: 1.5.0alpha1~3193 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=b938a02ef59027918c788ed7a2a924e6cdeb692e;p=lhc%2Fweb%2Fwiklou.git image link handling --- diff --git a/includes/Parser.php b/includes/Parser.php index 566ee1ed41..e434fb18fe 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -866,7 +866,7 @@ class Parser array_push( $this->mOutput->mLanguageLinks, $nt->getPrefixedText() ); $s .= $prefix . $trail ; wfProfileOut( $fname ); - return (trim($s) == '')? '': $s; + $s .= (trim($s) == '')? '': $s; continue; } if ( $ns == $image ) { @@ -874,7 +874,8 @@ class Parser $wgLinkCache->addImageLinkObj( $nt ); wfProfileOut( $fname ); continue; - } else if ( $ns == $category ) { + } + if ( $ns == $category ) { $t = $nt->getText() ; $nnt = Title::newFromText ( Namespace::getCanonicalName($category).":".$t ) ;