This will be run through the parser by getInfoBox(), and is documented
as taking raw wikitext, such as from Message::plain(). Calling with
text() is needlessly slower and may product incorrect results due to
applying transformations twice.
Also fix indentation for a wfMessage() call that was confusing
previously, seemingly passing 5 parameters with $4 being '<downloadlink/>'
when actually it is $3 and the line above continues a previous parameter.
Bug: T227297
Change-Id: Ice432e08b1c5f52db097f7c9f4fe6d69e1b04c2d
wfMessage( $msg,
$lsUrl,
$this->getVar( 'wgServer' ) .
- $this->getVar( 'wgScriptPath' ) . '/index.php',
+ $this->getVar( 'wgScriptPath' ) . '/index.php',
'<downloadlink/>',
$location ?: ''
)->plain(), 'tick-32.png'
)
);
$this->addHTML( $this->parent->getInfoBox(
- wfMessage( 'config-extension-link' )->text() ) );
+ wfMessage( 'config-extension-link' )->plain() ) );
$this->parent->restoreLinkPopups();
$this->endForm( false, false );
$dbSupport .= wfMessage( "config-dbsupport-$type" )->plain() . "\n";
}
$this->addHTML( $this->parent->getInfoBox(
- wfMessage( 'config-support-info', trim( $dbSupport ) )->text() ) );
+ wfMessage( 'config-support-info', trim( $dbSupport ) )->plain() ) );
// It's possible that the library for the default DB type is not compiled in.
// In that case, instead select the first supported DB type in the list.
'value' => true,
] ) .
$this->getFieldsetEnd() .
- $this->parent->getInfoBox( wfMessage( 'config-almost-done' )->text() ) .
+ $this->parent->getInfoBox( wfMessage( 'config-almost-done' )->plain() ) .
// getRadioSet() builds a set of labeled radio buttons.
// For grep: The following messages are used as the item labels:
// config-optional-continue, config-optional-skip