r32856 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r32855‎ | r32856 | r32857 >
Date:16:33, 6 April 2008
Author:aaron
Status:old
Tags:
Comment:
Use constant name
Modified paths:
  • /trunk/phase3/includes/SpecialRevisiondelete.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialRevisiondelete.php
@@ -1371,8 +1371,8 @@
13721372 $this->checkItem ( wfMsgForContent ( 'revdelete-uname' ), 4, $diff, $n, &$ret );
13731373
13741374 // Restriction application to sysops
1375 - if ( $diff & 8 ) {
1376 - if ( $n & 8 )
 1375+ if ( $diff & Revision::DELETED_RESTRICTED ) {
 1376+ if ( $n & Revision::DELETED_RESTRICTED )
13771377 $ret[2][] = wfMsgForContent ( 'revdelete-restricted' );
13781378 else
13791379 $ret[2][] = wfMsgForContent ( 'revdelete-unrestricted' );

Status & tagging log