// in this path. Used for loop detection.
var $mIWTransData = array();
- var $mAssocArgs = array();
/**#@-*/
if ( $this->mOutputType == OT_HTML && !$found ) {
$text = '[['.$title->getPrefixedText().']]';
$found = true;
- }
# Template cache array insertion
if( $found ) {
$text = wfEscapeWikiText( $text );
} elseif ( ($this->mOutputType == OT_HTML || $this->mOutputType == OT_WIKI) && $found && !$noparse) {
# Clean up argument array
- $this->mAssocArgs = array();
+ $assocArgs = array();
$index = 1;
foreach( $args as $arg ) {
$eqpos = strpos( $arg, '=' );
if ( $eqpos === false ) {
- $this->mAssocArgs[$index++] = $arg;
+ $assocArgs[$index++] = $arg;
} else {
$name = trim( substr( $arg, 0, $eqpos ) );
$value = trim( substr( $arg, $eqpos+1 ) );
$value = '';
}
if ( $name !== false ) {
- $this->mAssocArgs[$name] = $value;
+ $assocArgs[$name] = $value;
}
}
}
$text = strtr( $text, array( '<includeonly>' => '' , '</includeonly>' => '' ) );
# Strip <nowiki>, <pre>, etc.
$text = $this->strip( $text, $this->mStripState );
- $text = Sanitizer::removeHTMLtags( $text, array( &$this, 'replaceVariables' ), $this->mAssocArgs );
+ $text = Sanitizer::removeHTMLtags( $text, array( &$this, 'replaceVariables' ), $assocArgs );
}
- $text = $this->replaceVariables( $text, $this->mAssocArgs );
+ $text = $this->replaceVariables( $text, $assocArgs );
# Resume the link cache and register the inclusion as a link
if ( $this->mOutputType == OT_HTML && !is_null( $title ) ) {