Give failure message rather than assuming field 0 for trying to set field 8 (just...
authorAaron Schulz <aaron@users.mediawiki.org>
Wed, 13 May 2009 22:22:09 +0000 (22:22 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Wed, 13 May 2009 22:22:09 +0000 (22:22 +0000)
includes/specials/SpecialRevisiondelete.php

index 6bd0b1d..35f32d3 100644 (file)
@@ -851,7 +851,7 @@ class SpecialRevisionDelete extends UnlistedSpecialPage {
                $dbw = wfGetDB( DB_MASTER );
                // Don't allow simply locking the interface for no reason
                if( $bitfield == Revision::DELETED_RESTRICTED ) {
-                       $bitfield = 0;
+                       return false;
                }
                $deleter = new RevisionDeleter( $dbw );
                // By this point, only one of the below should be set