Revision: 50568 Author: aaron Date: 2009-05-13 22:22:09 +0000 (Wed, 13 May 2009)
Log Message: ----------- Give failure message rather than assuming field 0 for trying to set field 8 (just suppressing a rev but not hiding anything) Modified Paths: -------------- trunk/phase3/includes/specials/SpecialRevisiondelete.php Modified: trunk/phase3/includes/specials/SpecialRevisiondelete.php =================================================================== --- trunk/phase3/includes/specials/SpecialRevisiondelete.php 2009-05-13 22:03:32 UTC (rev 50567) +++ trunk/phase3/includes/specials/SpecialRevisiondelete.php 2009-05-13 22:22:09 UTC (rev 50568) @@ -851,7 +851,7 @@ $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 _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs