Last 2 wfBaseConvert to Wikimedia\base_convert
Change-Id: I0b6c1b87114925d17123e35cd5f98b9d05ff62b4
This commit is contained in:
parent
a916a25607
commit
4c6de386bd
1 changed files with 2 additions and 2 deletions
|
|
@ -308,8 +308,8 @@ class Block {
|
|||
if ( $block->getType() == self::TYPE_RANGE ) {
|
||||
# This is the number of bits that are allowed to vary in the block, give
|
||||
# or take some floating point errors
|
||||
$end = wfBaseconvert( $block->getRangeEnd(), 16, 10 );
|
||||
$start = wfBaseconvert( $block->getRangeStart(), 16, 10 );
|
||||
$end = Wikimedia\base_convert( $block->getRangeEnd(), 16, 10 );
|
||||
$start = Wikimedia\base_convert( $block->getRangeStart(), 16, 10 );
|
||||
$size = log( $end - $start + 1, 2 );
|
||||
|
||||
# This has the nice property that a /32 block is ranked equally with a
|
||||
|
|
|
|||
Loading…
Reference in a new issue