Index: trunk/phase3/includes/specials/SpecialBlockip.php |
— | — | @@ -467,7 +467,7 @@ |
468 | 468 | |
469 | 469 | # Set *_deleted fields if requested |
470 | 470 | if( $this->BlockHideName ) { |
471 | | - self::suppressUserName( $this->BlockAddress, $userId, $reasonstr ); |
| 471 | + self::suppressUserName( $this->BlockAddress, $userId ); |
472 | 472 | } |
473 | 473 | |
474 | 474 | # Only show watch link when this is no range block |
— | — | @@ -497,20 +497,7 @@ |
498 | 498 | } |
499 | 499 | } |
500 | 500 | |
501 | | - public static function suppressUserName( $name, $userId, $reason = '' ) { |
502 | | - $user = User::newFromName( $name, false ); |
503 | | - # Delete the user pages that exists |
504 | | - $title = $user->getUserPage(); |
505 | | - if( ($id = $title->getArticleID(GAID_FOR_UPDATE)) ) { |
506 | | - $article = new Article( $title ); |
507 | | - $article->doDeleteArticle( $reason, true /*suppress*/, $id ); |
508 | | - } |
509 | | - # Delete the user talk pages that exists |
510 | | - $title = $user->getTalkPage(); |
511 | | - if( $id = $title->getArticleID(GAID_FOR_UPDATE) ) { |
512 | | - $article = new Article( $title ); |
513 | | - $article->doDeleteArticle( $reason, true /*suppress*/, $id ); |
514 | | - } |
| 501 | + public static function suppressUserName( $name, $userId ) { |
515 | 502 | $op = '|'; // bitwise OR |
516 | 503 | return self::setUsernameBitfields( $name, $userId, $op ); |
517 | 504 | } |