X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialBlockList.php;h=39ca8dd746324a0d03811b6b8763511661674a31;hb=cb58676cfb4c46d1ead641d8c59b3d6bb9c96104;hp=7c7f017b725addbfcd59538090541b70de816bbf;hpb=ff13c3d92a3357d2cbb03c4d58dfc33999942b0a;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialBlockList.php b/includes/specials/SpecialBlockList.php index 7c7f017b72..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 ); } @@ -136,8 +137,7 @@ class SpecialBlockList extends SpecialPage { 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 )