Use constant name
authorAaron Schulz <aaron@users.mediawiki.org>
Sun, 6 Apr 2008 16:33:27 +0000 (16:33 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sun, 6 Apr 2008 16:33:27 +0000 (16:33 +0000)
includes/SpecialRevisiondelete.php

index 5071673..a35d73b 100644 (file)
@@ -1371,8 +1371,8 @@ class RevisionDeleter {
                $this->checkItem ( wfMsgForContent ( 'revdelete-uname' ),   4, $diff, $n, &$ret );
 
                // Restriction application to sysops
-               if ( $diff & 8 ) {
-                       if ( $n & 8 )
+               if ( $diff & Revision::DELETED_RESTRICTED ) {
+                       if ( $n & Revision::DELETED_RESTRICTED )
                                $ret[2][] = wfMsgForContent ( 'revdelete-restricted' );
                        else
                                $ret[2][] = wfMsgForContent ( 'revdelete-unrestricted' );