From: Aaron Schulz Date: Sun, 6 Apr 2008 16:33:27 +0000 (+0000) Subject: Use constant name X-Git-Tag: 1.31.0-rc.0~48580 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/ajouter.php?a=commitdiff_plain;h=053e3c6c34bb4c33deceada20641982fec8b635e;p=lhc%2Fweb%2Fwiklou.git Use constant name --- diff --git a/includes/SpecialRevisiondelete.php b/includes/SpecialRevisiondelete.php index 5071673588..a35d73b8ff 100644 --- a/includes/SpecialRevisiondelete.php +++ b/includes/SpecialRevisiondelete.php @@ -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' );