Merge "Replace deprecated HTMLForm methods"

This commit is contained in:
jenkins-bot 2022-06-28 19:47:11 +00:00 committed by Gerrit Code Review
commit e6c61b94f3
3 changed files with 6 additions and 6 deletions

View file

@ -184,7 +184,7 @@ class AbuseFilterViewExamine extends AbuseFilterView {
. $pager->getNavigationBar()
. $changesList->endRecentChangesList();
$form->addPostText( $output );
$form->addPostHtml( $output );
return true;
}

View file

@ -174,12 +174,12 @@ class AbuseFilterViewRevert extends AbuseFilterView {
// Look up all of them.
$results = $this->doLookup();
if ( $results === [] ) {
$dateForm->addPostText( $this->msg( 'abusefilter-revert-preview-no-results' )->escaped() );
$dateForm->addPostHtml( $this->msg( 'abusefilter-revert-preview-no-results' )->escaped() );
return true;
}
// Add a summary of everything that will be reversed.
$dateForm->addPostText( $this->msg( 'abusefilter-revert-preview-intro' )->parseAsBlock() );
$dateForm->addPostHtml( $this->msg( 'abusefilter-revert-preview-intro' )->parseAsBlock() );
$list = [];
foreach ( $results as $result ) {
@ -210,7 +210,7 @@ class AbuseFilterViewRevert extends AbuseFilterView {
$list[] = Xml::tags( 'li', null, $msg );
}
$dateForm->addPostText( Xml::tags( 'ul', null, implode( "\n", $list ) ) );
$dateForm->addPostHtml( Xml::tags( 'ul', null, implode( "\n", $list ) ) );
// Add a button down the bottom.
$confirmForm = [];
@ -233,7 +233,7 @@ class AbuseFilterViewRevert extends AbuseFilterView {
->setSubmitTextMsg( 'abusefilter-revert-confirm' )
->prepareForm()
->getHTML( true );
$dateForm->addPostText( $revertForm );
$dateForm->addPostHtml( $revertForm );
return true;
}

View file

@ -75,7 +75,7 @@ class AbuseFilterViewTools extends AbuseFilterView {
->setWrapperLegendMsg( 'abusefilter-tools-expr' )
->setSubmitTextMsg( 'abusefilter-tools-submitexpr' )
->setSubmitID( 'mw-abusefilter-submitexpr' )
->setFooterText( Xml::element( 'pre', [ 'id' => 'mw-abusefilter-expr-result' ], ' ' ) )
->setFooterHtml( Xml::element( 'pre', [ 'id' => 'mw-abusefilter-expr-result' ], ' ' ) )
->prepareForm()
->displayForm( false );