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
Balancer style tweaks
[lhc/web/wiklou.git]
/
includes
/
Block.php
diff --git
a/includes/Block.php
b/includes/Block.php
index
764592d
..
93df004
100644
(file)
--- a/
includes/Block.php
+++ b/
includes/Block.php
@@
-137,7
+137,7
@@
class Block {
if ( $options['by'] ) {
# Local user
if ( $options['by'] ) {
# Local user
- $this->setBlocker( User::newFromI
D
( $options['by'] ) );
+ $this->setBlocker( User::newFromI
d
( $options['by'] ) );
} else {
# Foreign user
$this->setBlocker( $options['byText'] );
} else {
# Foreign user
$this->setBlocker( $options['byText'] );
@@
-568,7
+568,7
@@
class Block {
if ( $this->forcedTargetID ) {
$uid = $this->forcedTargetID;
} else {
if ( $this->forcedTargetID ) {
$uid = $this->forcedTargetID;
} else {
- $uid = $this->target instanceof User ? $this->target->getI
D
() : 0;
+ $uid = $this->target instanceof User ? $this->target->getI
d
() : 0;
}
$a = [
}
$a = [
@@
-844,7
+844,7
@@
class Block {
'ipb_expiry' => $dbw->timestamp( $this->mExpiry ),
],
[ /* WHERE */
'ipb_expiry' => $dbw->timestamp( $this->mExpiry ),
],
[ /* WHERE */
- 'ipb_
address' => (string)$this->getTarget()
+ 'ipb_
id' => $this->getId(),
],
__METHOD__
);
],
__METHOD__
);