if ( $options['by'] ) {
# Local user
- $this->setBlocker( User::newFromID( $options['by'] ) );
+ $this->setBlocker( User::newFromId( $options['by'] ) );
} else {
# Foreign user
$this->setBlocker( $options['byText'] );
if ( $this->forcedTargetID ) {
$uid = $this->forcedTargetID;
} else {
- $uid = $this->target instanceof User ? $this->target->getID() : 0;
+ $uid = $this->target instanceof User ? $this->target->getId() : 0;
}
$a = [
'ipb_expiry' => $dbw->timestamp( $this->mExpiry ),
],
[ /* WHERE */
- 'ipb_address' => (string)$this->getTarget()
+ 'ipb_id' => $this->getId(),
],
__METHOD__
);