Follow-up to r49191: Same thing but where the log is by an Oversighter.
authorAaron Schulz <aaron@users.mediawiki.org>
Sun, 5 Apr 2009 02:02:30 +0000 (02:02 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sun, 5 Apr 2009 02:02:30 +0000 (02:02 +0000)
includes/specials/SpecialBlockip.php

index f25cb89..1c2dc67 100644 (file)
@@ -519,7 +519,7 @@ class IPBlockForm {
                        array('ar_user_text' => $userId), __METHOD__ );
                # Hide name from logs
                $dbw->update( 'logging', array("log_deleted = log_deleted $op $delUser"),
-                       array('log_user' => $userId), __METHOD__ );
+                       array('log_user' => $userId, "log_type != 'suppress'"), __METHOD__ );
                $dbw->update( 'logging', array("log_deleted = log_deleted $op $delAction"),
                        array('log_namespace' => NS_USER, 'log_title' => $userDbKey,
                                "log_type != 'suppress'"), __METHOD__ );