dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Make LBFactory::waitForReplication() mask wait latency with callbacks"
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialBlockList.php
diff --git
a/includes/specials/SpecialBlockList.php
b/includes/specials/SpecialBlockList.php
index
dbbee71
..
c4fb316
100644
(file)
--- a/
includes/specials/SpecialBlockList.php
+++ b/
includes/specials/SpecialBlockList.php
@@
-46,7
+46,7
@@
class SpecialBlockList extends SpecialPage {
$out = $this->getOutput();
$lang = $this->getLanguage();
$out->setPageTitle( $this->msg( 'ipblocklist' ) );
$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 );
$request = $this->getRequest();
$par = $request->getVal( 'ip', $par );
@@
-136,8
+136,7
@@
class SpecialBlockList extends SpecialPage {
case Block::TYPE_IP:
case Block::TYPE_RANGE:
list( $start, $end ) = IP::parseRange( $target );
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 )
[
'ipb_address' => $target,
Block::getRangeCond( $start, $end )