From: Aaron Schulz Date: Fri, 6 Mar 2009 02:25:28 +0000 (+0000) Subject: style/profiling tweaks X-Git-Tag: 1.31.0-rc.0~42591 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=ee13359dd5cc83063dad850bc0ab7f5db21b0500;p=lhc%2Fweb%2Fwiklou.git style/profiling tweaks --- diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index bff34985f1..c94cf2ef57 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -886,7 +886,7 @@ class Parser $text = $this->doDoubleUnderscore( $text ); $text = $this->doHeadings( $text ); - if($this->mOptions->getUseDynamicDates()) { + if( $this->mOptions->getUseDynamicDates() ) { $df = DateFormatter::getInstance(); $text = $df->reformat( $this->mOptions->getDateFormat(), $text ); } @@ -896,7 +896,7 @@ class Parser # replaceInternalLinks may sometimes leave behind # absolute URLs, which have to be masked to hide them from replaceExternalLinks - $text = str_replace($this->mUniqPrefix."NOPARSE", "", $text); + $text = str_replace($this->mUniqPrefix.'NOPARSE', '', $text); $text = $this->doMagicLinks( $text ); $text = $this->formatHeadings( $text, $isMain ); @@ -3299,6 +3299,7 @@ class Parser * Fills $this->mDoubleUnderscores, returns the modified text */ function doDoubleUnderscore( $text ) { + wfProfileIn( __METHOD__ ); // The position of __TOC__ needs to be recorded $mw = MagicWord::get( 'toc' ); if( $mw->match( $text ) ) { @@ -3341,7 +3342,7 @@ class Parser } elseif( isset( $this->mDoubleUnderscores['index'] ) ) { $this->mOutput->setIndexPolicy( 'index' ); } - + wfProfileOut( __METHOD__ ); return $text; }