mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-24 06:03:49 +00:00
Merge "Convert Special:AbuseFilter/import to OOjs "
This commit is contained in:
commit
dea61f1992
|
@ -9,14 +9,14 @@ class AbuseFilterViewImport extends AbuseFilterView {
|
|||
}
|
||||
$url = SpecialPage::getTitleFor( 'AbuseFilter', 'new' )->getFullURL();
|
||||
|
||||
$out->addWikiMsg( 'abusefilter-import-intro' );
|
||||
|
||||
$formDescriptor = [
|
||||
'ImportText' => [
|
||||
'type' => 'textarea',
|
||||
'cols' => 200,
|
||||
]
|
||||
];
|
||||
$htmlForm = new HTMLForm( $formDescriptor, $this->getContext() );
|
||||
$htmlForm->setHeaderText( $this->msg( 'abusefilter-import-intro' ) )
|
||||
$htmlform = HTMLForm::factory( 'ooui', $formDescriptor, $this->getContext() )
|
||||
->setSubmitTextMsg( 'abusefilter-import-submit' )
|
||||
->setAction( $url )
|
||||
->show();
|
||||
|
|
Loading…
Reference in a new issue