From: Aaron Schulz Date: Wed, 25 Mar 2009 18:32:49 +0000 (+0000) Subject: Don't filter log if there are a lot of relevant items X-Git-Tag: 1.31.0-rc.0~42356 X-Git-Url: http://git.cyclocoop.org//%22javascript:ModifierStyle%28%27%22.%24id.%22%27%29/%22?a=commitdiff_plain;h=342e086a2f970e322d16f394a751aaa173f08d49;p=lhc%2Fweb%2Fwiklou.git Don't filter log if there are a lot of relevant items --- diff --git a/includes/specials/SpecialRevisiondelete.php b/includes/specials/SpecialRevisiondelete.php index 63c050b6c5..e92fd648d0 100644 --- a/includes/specials/SpecialRevisiondelete.php +++ b/includes/specials/SpecialRevisiondelete.php @@ -143,6 +143,8 @@ class SpecialRevisionDelete extends UnlistedSpecialPage { $ids = $this->logids; break; } + // Just get the whole log if there are a lot if items + if( $ids > 20 ) return null; // Digit chars only foreach( $ids as $id ) { if( preg_match( '/^\d+$/', $id, $m ) ) {