dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3cb7313
)
Force the target user ID to be the correct foreign ID on the relevant local wikis...
author
Aaron Schulz
<aaron@users.mediawiki.org>
Tue, 28 Feb 2012 02:04:30 +0000
(
02:04
+0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Tue, 28 Feb 2012 02:04:30 +0000
(
02:04
+0000)
includes/Block.php
patch
|
blob
|
history
diff --git
a/includes/Block.php
b/includes/Block.php
index
c258dd2
..
522316f
100644
(file)
--- a/
includes/Block.php
+++ b/
includes/Block.php
@@
-71,6
+71,9
@@
class Block {
}
$this->setTarget( $address );
+ if ( $this->target instanceof User && $user ) {
+ $this->target->setId( $user ); // needed for foreign users
+ }
if ( $by ) { // local user
$this->setBlocker( User::newFromID( $by ) );
} else { // foreign user