From 7377efa7ded708c124c42c5c533ce75d11cc19e8 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 28 Feb 2012 02:04:30 +0000 Subject: [PATCH] Force the target user ID to be the correct foreign ID on the relevant local wikis for crosswiki suppress blocks. --- includes/Block.php | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.20.1