$this->setHeaders();
$this->outputHeader();
$out = $this->getOutput();
- $lang = $this->getLanguage();
$out->setPageTitle( $this->msg( 'ipblocklist' ) );
$out->addModuleStyles( [ 'mediawiki.special' ] );
'Limit' => [
'type' => 'limitselect',
'label-message' => 'table_pager_limit_label',
- 'options' => [
- $lang->formatNum( 20 ) => 20,
- $lang->formatNum( 50 ) => 50,
- $lang->formatNum( 100 ) => 100,
- $lang->formatNum( 250 ) => 250,
- $lang->formatNum( 500 ) => 500,
- ],
+ 'options' => $pager->getLimitSelectList(),
'name' => 'limit',
'default' => $pager->getLimit(),
],
$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' )
+ ->setFormIdentifier( 'blocklist' )
+ ->setWrapperLegendMsg( 'ipblocklist-legend' )
+ ->setSubmitTextMsg( 'ipblocklist-submit' )
+ ->prepareForm()
+ ->displayForm( false );
- $form->displayForm( '' );
$this->showList( $pager );
}