https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112563
Revision: 112563
Author: aaron
Date: 2012-02-28 02:04:30 +0000 (Tue, 28 Feb 2012)
Log Message:
-----------
Force the target user ID to be the correct foreign ID on the relevant local
wikis for crosswiki suppress blocks.
Modified Paths:
--------------
trunk/phase3/includes/Block.php
Modified: trunk/phase3/includes/Block.php
===================================================================
--- trunk/phase3/includes/Block.php 2012-02-28 01:57:39 UTC (rev 112562)
+++ trunk/phase3/includes/Block.php 2012-02-28 02:04:30 UTC (rev 112563)
@@ -71,6 +71,9 @@
}
$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
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs