From: Florian Schmidt Date: Tue, 18 Oct 2016 17:12:00 +0000 (+0200) Subject: Special:BlockList: Chain methods of HTMLForm X-Git-Tag: 1.31.0-rc.0~5069 X-Git-Url: http://git.cyclocoop.org/%7B%7B%20url_for%28%27admin_vote_del%27%2C%20idvote=vote.voteid%29%20%7D%7D?a=commitdiff_plain;h=1ff3ed2d44a2d73278026f40225408d678cda580;p=lhc%2Fweb%2Fwiklou.git Special:BlockList: Chain methods of HTMLForm Much easier to read. Also, changed '' as a value for displayForm to false. Change-Id: Iab932d34952a1f7aab9da02d5ddf137edd53ad43 --- 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 ); }