image link handling
authorGabriel Wicke <gwicke@users.mediawiki.org>
Thu, 27 May 2004 01:10:01 +0000 (01:10 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Thu, 27 May 2004 01:10:01 +0000 (01:10 +0000)
includes/Parser.php

index 566ee1e..e434fb1 100644 (file)
@@ -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 ) ;