Revision: 51060 Author: aaron Date: 2009-05-27 13:46:46 +0000 (Wed, 27 May 2009)
Log Message: ----------- reverted r49742 per CR; also it doesn't handle subpages anyway Modified Paths: -------------- trunk/phase3/includes/specials/SpecialBlockip.php Modified: trunk/phase3/includes/specials/SpecialBlockip.php =================================================================== --- trunk/phase3/includes/specials/SpecialBlockip.php 2009-05-27 13:45:48 UTC (rev 51059) +++ trunk/phase3/includes/specials/SpecialBlockip.php 2009-05-27 13:46:46 UTC (rev 51060) @@ -467,7 +467,7 @@ # Set *_deleted fields if requested if( $this->BlockHideName ) { - self::suppressUserName( $this->BlockAddress, $userId, $reasonstr ); + self::suppressUserName( $this->BlockAddress, $userId ); } # Only show watch link when this is no range block @@ -497,20 +497,7 @@ } } - public static function suppressUserName( $name, $userId, $reason = '' ) { - $user = User::newFromName( $name, false ); - # Delete the user pages that exists - $title = $user->getUserPage(); - if( ($id = $title->getArticleID(GAID_FOR_UPDATE)) ) { - $article = new Article( $title ); - $article->doDeleteArticle( $reason, true /*suppress*/, $id ); - } - # Delete the user talk pages that exists - $title = $user->getTalkPage(); - if( $id = $title->getArticleID(GAID_FOR_UPDATE) ) { - $article = new Article( $title ); - $article->doDeleteArticle( $reason, true /*suppress*/, $id ); - } + public static function suppressUserName( $name, $userId ) { $op = '|'; // bitwise OR return self::setUsernameBitfields( $name, $userId, $op ); } _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs