From: Daniel Cannon Date: Sun, 6 Apr 2008 21:07:40 +0000 (+0000) Subject: Oh, didn't realize there were constants for the bitfields. Let's use those here inste... X-Git-Tag: 1.31.0-rc.0~48570 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=d302e61591332f7d2104cb964cceedf7035d50bf;p=lhc%2Fweb%2Fwiklou.git Oh, didn't realize there were constants for the bitfields. Let's use those here instead too. --- diff --git a/includes/SpecialRevisiondelete.php b/includes/SpecialRevisiondelete.php index 1a01b76f95..13226facf1 100644 --- a/includes/SpecialRevisiondelete.php +++ b/includes/SpecialRevisiondelete.php @@ -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 ) {