From b938a02ef59027918c788ed7a2a924e6cdeb692e Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Thu, 27 May 2004 01:10:01 +0000 Subject: [PATCH] image link handling --- includes/Parser.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 ) ; -- 2.20.1