From: Aaron Schulz Date: Thu, 26 Mar 2009 16:29:26 +0000 (+0000) Subject: Added log_action filter X-Git-Tag: 1.31.0-rc.0~42339 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=d1558082f58987a2a632848c616f49944f4afcc7;p=lhc%2Fweb%2Fwiklou.git Added log_action filter --- diff --git a/includes/specials/SpecialRevisiondelete.php b/includes/specials/SpecialRevisiondelete.php index bc5abc8c18..f68826ce59 100644 --- a/includes/specials/SpecialRevisiondelete.php +++ b/includes/specials/SpecialRevisiondelete.php @@ -143,8 +143,10 @@ class SpecialRevisionDelete extends UnlistedSpecialPage { $ids = $this->logids; break; } + // Revision delete logs + $conds = array( 'log_action' => 'revision' ); // Just get the whole log if there are a lot if items - if( count($ids) > 20 ) return null; + if( count($ids) > 20 ) return $conds; // Digit chars only foreach( $ids as $id ) { if( preg_match( '/^\d+$/', $id, $m ) ) { @@ -153,9 +155,9 @@ class SpecialRevisionDelete extends UnlistedSpecialPage { } // Format is if( count($safeIds) ) { - return array("log_params RLIKE '(^|\n|,)(".implode('|',$safeIds).")(,|$)'"); + $conds[] = "log_params RLIKE '(^|\n|,)(".implode('|',$safeIds).")(,|$)'"; } - return null; + return $conds; } private function secureOperation() {