From d302e61591332f7d2104cb964cceedf7035d50bf Mon Sep 17 00:00:00 2001 From: Daniel Cannon Date: Sun, 6 Apr 2008 21:07:40 +0000 Subject: [PATCH] Oh, didn't realize there were constants for the bitfields. Let's use those here instead too. --- includes/SpecialRevisiondelete.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 ) { -- 2.20.1