$out = $this->getOutput();
$lang = $this->getLanguage();
$out->setPageTitle( $this->msg( 'ipblocklist' ) );
- $out->addModuleStyles( [ 'mediawiki.special', 'mediawiki.special.blocklist' ] );
+ $out->addModuleStyles( [ 'mediawiki.special' ] );
$request = $this->getRequest();
$par = $request->getVal( 'ip', $par );
$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 );
}
case Block::TYPE_IP:
case Block::TYPE_RANGE:
list( $start, $end ) = IP::parseRange( $target );
- $dbr = wfGetDB( DB_SLAVE );
- $conds[] = $dbr->makeList(
+ $conds[] = wfGetDB( DB_REPLICA )->makeList(
[
'ipb_address' => $target,
Block::getRangeCond( $start, $end )