From: Domas Mituzas Date: Sat, 14 Jan 2006 03:08:04 +0000 (+0000) Subject: transformMsg profiling hook, shows when site messages suck X-Git-Tag: 1.6.0~561 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=755bdff378fcd40f416a6c5b90a79b07bb2a2c9b;p=lhc%2Fweb%2Fwiklou.git transformMsg profiling hook, shows when site messages suck --- diff --git a/includes/Parser.php b/includes/Parser.php index 099d46df86..0a12424589 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -3308,12 +3308,16 @@ class Parser global $wgTitle; static $executing = false; + $fname = "Parser::transformMsg"; + # Guard against infinite recursion if ( $executing ) { return $text; } $executing = true; + wfProfileIn($fname); + $this->mTitle = $wgTitle; $this->mOptions = $options; $this->mOutputType = OT_MSG; @@ -3321,6 +3325,7 @@ class Parser $text = $this->replaceVariables( $text ); $executing = false; + wfProfileOut($fname); return $text; }