mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-27 15:30:42 +00:00
Merge "Replace deprecated HTMLForm methods"
This commit is contained in:
commit
e6c61b94f3
|
@ -184,7 +184,7 @@ class AbuseFilterViewExamine extends AbuseFilterView {
|
|||
. $pager->getNavigationBar()
|
||||
. $changesList->endRecentChangesList();
|
||||
|
||||
$form->addPostText( $output );
|
||||
$form->addPostHtml( $output );
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in a new issue