From: Aaron Schulz Date: Sun, 5 Apr 2009 19:17:54 +0000 (+0000) Subject: (bug 18346) Automatically hide RC log items on block too X-Git-Tag: 1.31.0-rc.0~42218 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=c11cd8f6091abd59cf4594cd97facda53e5a13cb;p=lhc%2Fweb%2Fwiklou.git (bug 18346) Automatically hide RC log items on block too --- diff --git a/includes/specials/SpecialBlockip.php b/includes/specials/SpecialBlockip.php index dd7cc3f81b..1fc5f699eb 100644 --- a/includes/specials/SpecialBlockip.php +++ b/includes/specials/SpecialBlockip.php @@ -526,6 +526,8 @@ class IPBlockForm { # Hide name from RC $dbw->update( 'recentchanges', array("rc_deleted = rc_deleted $op $delUser"), array('rc_user_text' => $name), __METHOD__ ); + $dbw->update( 'recentchanges', array("rc_deleted = rc_deleted $op $delAction"), + array('rc_namespace' => NS_USER, 'rc_title' => $userDbKey, 'rc_logid > 0'), __METHOD__ ); # Hide name from live images $dbw->update( 'oldimage', array("oi_deleted = oi_deleted $op $delUser"), array('oi_user_text' => $name), __METHOD__ );