r32876 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r32875‎ | r32876 | r32877 >
Date:21:07, 6 April 2008
Author:amidaniel
Status:old
Tags:
Comment:
Oh, didn't realize there were constants for the bitfields. Let's use those here instead too.
Modified paths:
  • /trunk/phase3/includes/SpecialRevisiondelete.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialRevisiondelete.php
@@ -1366,9 +1366,12 @@
13671367 $diff = $n ^ $o;
13681368 $ret = array ( 0 => array(), 1 => array(), 2 => array() );
13691369
1370 - $this->checkItem ( wfMsgForContent ( 'revdelete-content' ), 1, $diff, $n, $ret );
1371 - $this->checkItem ( wfMsgForContent ( 'revdelete-summary' ), 2, $diff, $n, $ret );
1372 - $this->checkItem ( wfMsgForContent ( 'revdelete-uname' ), 4, $diff, $n, $ret );
 1370+ $this->checkItem ( wfMsgForContent ( 'revdelete-content' ),
 1371+ Revision::DELETED_TEXT, $diff, $n, $ret );
 1372+ $this->checkItem ( wfMsgForContent ( 'revdelete-summary' ),
 1373+ Revision::DELETED_COMMENT, $diff, $n, $ret );
 1374+ $this->checkItem ( wfMsgForContent ( 'revdelete-uname' ),
 1375+ Revision::DELETED_USER, $diff, $n, $ret );
13731376
13741377 // Restriction application to sysops
13751378 if ( $diff & Revision::DELETED_RESTRICTED ) {

Status & tagging log