* not be the same as the target you gave if you used $vagueTarget!
*/
public static function newFromTarget( $specificTarget, $vagueTarget = null, $fromMaster = false ) {
+ # (bug 29116) passing $vagueTarget = '' is not unreasonable here, but int(0)
+ # is a valid username, so we can't just use weak comparisons.
+ if( $vagueTarget === '' ){
+ $vagueTarget = null;
+ }
+
list( $target, $type ) = self::parseTarget( $specificTarget );
if( $type == Block::TYPE_ID || $type == Block::TYPE_AUTO ){
return Block::newFromID( $target );