$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' )
+ ->setSubmitProgressive()
+ ->prepareForm()
+ ->displayForm( false );
- $form->displayForm( '' );
$this->showList( $pager );
}
case Block::TYPE_IP:
case Block::TYPE_RANGE:
list( $start, $end ) = IP::parseRange( $target );
- $conds[] = wfGetDB( DB_SLAVE )->makeList(
+ $conds[] = wfGetDB( DB_REPLICA )->makeList(
[
'ipb_address' => $target,
Block::getRangeCond( $start, $end )