Call replaceExternalLinks after replaceInternalLinks. Fixes bug 2 and
authorWil Mahan <wmahan@users.mediawiki.org>
Thu, 23 Sep 2004 07:16:05 +0000 (07:16 +0000)
committerWil Mahan <wmahan@users.mediawiki.org>
Thu, 23 Sep 2004 07:16:05 +0000 (07:16 +0000)
a related bug.

includes/Parser.php

index 1549f82..c9731b8 100644 (file)
@@ -661,11 +661,11 @@ class Parser
                        $text = $wgDateFormatter->reformat( $this->mOptions->getDateFormat(), $text );
                }
                $text = $this->doAllQuotes( $text );
-               $text = $this->replaceExternalLinks( $text );
                $text = $this->doMagicLinks( $text );
                $text = $this->replaceInternalLinks ( $text );
                # Another call to replace links and images inside captions of images
                $text = $this->replaceInternalLinks ( $text );
+               $text = $this->replaceExternalLinks( $text );
 
                $text = $this->doTableStuff( $text );
                $text = $this->formatHeadings( $text, $isMain );