$out->addBacklinkSubtitle( $this->mTitle );
if ( is_array( $err ) ) {
- $out->wrapWikiMsg( "<p class='error'>\n$1\n</p>\n", $err );
+ $out->wrapWikiMsg( "<div class='error'>\n$1\n</div>\n", $err );
} elseif ( is_string( $err ) ) {
- $out->addHTML( "<p class='error'>{$err}</p>\n" );
+ $out->addHTML( "<div class='error'>{$err}</div>\n" );
}
if ( $this->mTitle->getRestrictionTypes() === [] ) {
'protect-norestrictiontypes-title',
$this->mTitle->getPrefixedText()
) );
- $out->addWikiText( $this->mContext->msg( 'protect-norestrictiontypes-text' )->plain() );
+ $out->addWikiTextAsInterface(
+ $this->mContext->msg( 'protect-norestrictiontypes-text' )->plain()
+ );
// Show the log in case protection was possible once
$this->showLogExtract( $out );
$this->mContext->msg( 'protect-title-notallowed',
$this->mTitle->getPrefixedText() )
);
- $out->addWikiText( $out->formatPermissionsErrorMessage( $this->mPermErrors, 'protect' ) );
+ $out->addWikiTextAsInterface( $out->formatPermissionsErrorMessage(
+ $this->mPermErrors, 'protect'
+ ) );
} else {
$out->setPageTitle( $this->mContext->msg( 'protect-title', $this->mTitle->getPrefixedText() ) );
$out->addWikiMsg( 'protect-text',
);
if ( !$status->isOK() ) {
- $this->show( $out->parseInline( $status->getWikiText() ) );
+ $this->show( $out->parseInlineAsInterface( $status->getWikiText() ) );
return false;
}