wfProfileIn( $fname );
$bail = false;
- if ( !$this->mVariables ) {
- $this->initialiseVariables();
- }
$titleChars = Title::legalChars();
$nonBraceChars = str_replace( array( '{', '}' ), array( '', '' ), $titleChars );
}
function variableSubstitution( $matches ) {
+ if ( !$this->mVariables ) {
+ $this->initialiseVariables();
+ }
if ( array_key_exists( $matches[1], $this->mVariables ) ) {
$text = $this->mVariables[$matches[1]];
$this->mOutput->mContainsOldMagic = true;
}
# Internal variables
+ if ( !$this->mVariables ) {
+ $this->initialiseVariables();
+ }
if ( !$found && array_key_exists( $part1, $this->mVariables ) ) {
$text = $this->mVariables[$part1];
$found = true;