From 1f1ce60cd0ec2b14a2f6b5594f6b43e9cbafac2f Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 26 Mar 2009 17:02:21 +0000 Subject: [PATCH] Fix for r48839: log deletion uses a different action --- includes/specials/SpecialRevisiondelete.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/specials/SpecialRevisiondelete.php b/includes/specials/SpecialRevisiondelete.php index f68826ce59..ad5b01c64c 100644 --- a/includes/specials/SpecialRevisiondelete.php +++ b/includes/specials/SpecialRevisiondelete.php @@ -126,6 +126,7 @@ class SpecialRevisionDelete extends UnlistedSpecialPage { private function getLogQueryCond() { $ids = $safeIds = array(); + $action = 'revision'; switch( $this->deleteKey ) { case 'oldid': $ids = $this->oldids; @@ -141,10 +142,11 @@ class SpecialRevisionDelete extends UnlistedSpecialPage { break; case 'logid': $ids = $this->logids; + $action = 'event'; break; } // Revision delete logs - $conds = array( 'log_action' => 'revision' ); + $conds = array( 'log_action' => $action ); // Just get the whole log if there are a lot if items if( count($ids) > 20 ) return $conds; // Digit chars only -- 2.20.1