Index: trunk/phase3/includes/api/ApiBlock.php |
— | — | @@ -102,7 +102,7 @@ |
103 | 103 | $res['user'] = $params['user']; |
104 | 104 | $res['userID'] = $target instanceof User ? $target->getId() : 0; |
105 | 105 | |
106 | | - $block = SpecialBlock::getBlockFromTargetAndType( $target, $type ); |
| 106 | + $block = Block::newFromTargetAndType( $target, $type ); |
107 | 107 | if( $block instanceof Block ){ |
108 | 108 | $res['expiry'] = $block->mExpiry == Block::infinity() |
109 | 109 | ? 'infinite' |