From 8ff80d0134f1ebdd11f5aee7d664b0d6128a080c Mon Sep 17 00:00:00 2001 From: Rendann Date: Tue, 15 Aug 2017 14:17:27 +0000 Subject: [PATCH] Convert Special:AbuseFilter/import to OOjs Based on https://gerrit.wikimedia.org/r/#/c/370150/ Bug: T132284 Change-Id: Iab2a24926c6b547e34f516149ff94953fb0da634 --- includes/Views/AbuseFilterViewImport.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/Views/AbuseFilterViewImport.php b/includes/Views/AbuseFilterViewImport.php index 9186451d1..6bd4c2694 100644 --- a/includes/Views/AbuseFilterViewImport.php +++ b/includes/Views/AbuseFilterViewImport.php @@ -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();