$this->parserTitle = Title::newFromText( 'Installer' );
$this->parserOptions = new ParserOptions( $wgUser ); // language will be wrong :(
+ $this->parserOptions->setTidy( true );
// Don't try to access DB before user language is initialised
$this->setParserLanguage( Language::factory( 'en' ) );
}
public function execute() {
$text = $this->getFileContents();
$text = InstallDocFormatter::format( $text );
- $this->parent->output->addWikiText( $text );
+ $this->parent->output->addWikiTextInterface( $text );
$this->startForm();
$this->endForm( false );
}
/**
* @param string $text
+ * @deprecated since 1.32; use addWikiTextInterface instead
*/
public function addWikiText( $text ) {
+ wfDeprecated( __METHOD__, '1.32' );
+ $this->addWikiTextInterface( $text );
+ }
+
+ /**
+ * @param string $text
+ */
+ public function addWikiTextInterface( $text ) {
$this->addHTML( $this->parent->parse( $text ) );
}
return 'continue';
}
}
- $this->parent->output->addWikiText( wfMessage( 'config-welcome' )->plain() );
+ $this->parent->output->addWikiTextInterface( wfMessage( 'config-welcome' )->plain() );
$status = $this->parent->doEnvironmentChecks();
if ( $status->isGood() ) {
$this->parent->output->addHTML( '<span class="success-message">' .
wfMessage( 'config-env-good' )->escaped() . '</span>' );
- $this->parent->output->addWikiText( wfMessage( 'config-copyright',
+ $this->parent->output->addWikiTextInterface( wfMessage( 'config-copyright',
SpecialVersion::getCopyrightAndAuthorList() )->plain() );
$this->startForm();
$this->endForm();