Fix problem with RFC magic links, as noted at bug 479
authorWil Mahan <wmahan@users.mediawiki.org>
Sun, 26 Sep 2004 17:59:08 +0000 (17:59 +0000)
committerWil Mahan <wmahan@users.mediawiki.org>
Sun, 26 Sep 2004 17:59:08 +0000 (17:59 +0000)
includes/Parser.php

index 4d78490..42b71df 100644 (file)
@@ -658,11 +658,11 @@ class Parser
                        $text = $wgDateFormatter->reformat( $this->mOptions->getDateFormat(), $text );
                }
                $text = $this->doAllQuotes( $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->doMagicLinks( $text );
                $text = $this->doTableStuff( $text );
                $text = $this->formatHeadings( $text, $isMain );
                $sk =& $this->mOptions->getSkin();
@@ -1550,12 +1550,16 @@ class Parser
         * @access private
         */
        function initialiseVariables() {
+               $fname = 'Parser::initialiseVaraibles';
+               wfProfileIn( $fname );
                global $wgVariableIDs;
                $this->mVariables = array();
                foreach ( $wgVariableIDs as $id ) {
                        $mw =& MagicWord::get( $id );
                        $mw->addToArray( $this->mVariables, $this->getVariableValue( $id ) );
                }
+               $fname = 'Parser::initialiseVaraibles';
+               wfProfileOut( $fname );
        }
 
        /**