From: Wil Mahan Date: Thu, 23 Sep 2004 07:16:05 +0000 (+0000) Subject: Call replaceExternalLinks after replaceInternalLinks. Fixes bug 2 and X-Git-Tag: 1.5.0alpha1~1851 X-Git-Url: http://git.cyclocoop.org/%7B%7B%20url_for%28%27admin_vote_add%27%29%20%7D%7D?a=commitdiff_plain;h=1c9c17f675da1e04b6da64c5e235dc5b2cb4c490;p=lhc%2Fweb%2Fwiklou.git Call replaceExternalLinks after replaceInternalLinks. Fixes bug 2 and a related bug. --- diff --git a/includes/Parser.php b/includes/Parser.php index 1549f82304..c9731b8d5e 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -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 );