Oh, didn't realize there were constants for the bitfields. Let's use those here inste...
authorDaniel Cannon <amidaniel@users.mediawiki.org>
Sun, 6 Apr 2008 21:07:40 +0000 (21:07 +0000)
committerDaniel Cannon <amidaniel@users.mediawiki.org>
Sun, 6 Apr 2008 21:07:40 +0000 (21:07 +0000)
includes/SpecialRevisiondelete.php

index 1a01b76..13226fa 100644 (file)
@@ -1366,9 +1366,12 @@ class RevisionDeleter {
                $diff = $n ^ $o;
                $ret = array ( 0 => array(), 1 => array(), 2 => array() );
 
-               $this->checkItem ( wfMsgForContent ( 'revdelete-content' ), 1, $diff, $n, $ret );
-               $this->checkItem ( wfMsgForContent ( 'revdelete-summary' ), 2, $diff, $n, $ret );
-               $this->checkItem ( wfMsgForContent ( 'revdelete-uname' ),   4, $diff, $n, $ret );
+               $this->checkItem ( wfMsgForContent ( 'revdelete-content' ), 
+                               Revision::DELETED_TEXT, $diff, $n, $ret );
+               $this->checkItem ( wfMsgForContent ( 'revdelete-summary' ), 
+                               Revision::DELETED_COMMENT, $diff, $n, $ret );
+               $this->checkItem ( wfMsgForContent ( 'revdelete-uname' ), 
+                               Revision::DELETED_USER, $diff, $n, $ret );
 
                // Restriction application to sysops
                if ( $diff & Revision::DELETED_RESTRICTED ) {