* @access private
*/
function variableSubstitution( $matches ) {
+ $fname = 'parser::variableSubstitution';
+ wfProfileIn( $fname );
if ( !$this->mVariables ) {
$this->initialiseVariables();
}
} else {
$text = $matches[0];
}
+ wfProfileOut( $fname );
return $text;
}
function braceSubstitution( $matches ) {
global $wgLinkCache, $wgContLang;
$fname = 'Parser::braceSubstitution';
+ wfProfileIn( $fname );
+
$found = false;
$nowiki = false;
$noparse = false;
# Empties the template path
$this->mTemplatePath = array();
if ( !$found ) {
+ wfProfileOut( $fname );
return $matches[0];
} else {
# replace ==section headers==
$this->mTemplatePath = array();
if ( !$found ) {
+ wfProfileOut( $fname );
return $matches[0];
} else {
+ wfProfileOut( $fname );
return $text;
}
}