From: Aaron Schulz Date: Tue, 28 Feb 2012 02:04:30 +0000 (+0000) Subject: Force the target user ID to be the correct foreign ID on the relevant local wikis... X-Git-Tag: 1.31.0-rc.0~24476 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=7377efa7ded708c124c42c5c533ce75d11cc19e8;p=lhc%2Fweb%2Fwiklou.git Force the target user ID to be the correct foreign ID on the relevant local wikis for crosswiki suppress blocks. --- diff --git a/includes/Block.php b/includes/Block.php index c258dd2568..522316fcc5 100644 --- 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