From 1ff3ed2d44a2d73278026f40225408d678cda580 Mon Sep 17 00:00:00 2001 From: Florian Schmidt Date: Tue, 18 Oct 2016 19:12:00 +0200 Subject: [PATCH] Special:BlockList: Chain methods of HTMLForm Much easier to read. Also, changed '' as a value for displayForm to false. Change-Id: Iab932d34952a1f7aab9da02d5ddf137edd53ad43 --- includes/specials/SpecialBlockList.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/includes/specials/SpecialBlockList.php b/includes/specials/SpecialBlockList.php index c4fb3161e2..39ca8dd746 100644 --- a/includes/specials/SpecialBlockList.php +++ b/includes/specials/SpecialBlockList.php @@ -103,13 +103,14 @@ class SpecialBlockList extends SpecialPage { $context = new DerivativeContext( $this->getContext() ); $context->setTitle( $this->getPageTitle() ); // Remove subpage $form = HTMLForm::factory( 'ooui', $fields, $context ); - $form->setMethod( 'get' ); - $form->setWrapperLegendMsg( 'ipblocklist-legend' ); - $form->setSubmitTextMsg( 'ipblocklist-submit' ); - $form->setSubmitProgressive(); - $form->prepareForm(); + $form + ->setMethod( 'get' ) + ->setWrapperLegendMsg( 'ipblocklist-legend' ) + ->setSubmitTextMsg( 'ipblocklist-submit' ) + ->setSubmitProgressive() + ->prepareForm() + ->displayForm( false ); - $form->displayForm( '' ); $this->showList( $pager ); } -- 2.20.1