Don't filter log if there are a lot of relevant items
authorAaron Schulz <aaron@users.mediawiki.org>
Wed, 25 Mar 2009 18:32:49 +0000 (18:32 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Wed, 25 Mar 2009 18:32:49 +0000 (18:32 +0000)
includes/specials/SpecialRevisiondelete.php

index 63c050b..e92fd64 100644 (file)
@@ -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 ) ) {