dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
266d41f
)
transformMsg profiling hook, shows when site messages suck
author
Domas Mituzas
<midom@users.mediawiki.org>
Sat, 14 Jan 2006 03:08:04 +0000
(
03:08
+0000)
committer
Domas Mituzas
<midom@users.mediawiki.org>
Sat, 14 Jan 2006 03:08:04 +0000
(
03:08
+0000)
includes/Parser.php
patch
|
blob
|
history
diff --git
a/includes/Parser.php
b/includes/Parser.php
index
099d46d
..
0a12424
100644
(file)
--- 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;
}