r57594 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r57593‎ | r57594 | r57595 >
Date:21:33, 9 October 2009
Author:werdna
Status:ok
Tags:
Comment:
Same fix as r57530, except done correctly
Modified paths:
  • /trunk/phase3/includes/ChangesList.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/ChangesList.php
@@ -449,9 +449,9 @@
450450 if( $rc->mAttribs['rc_deleted'] & $field ) {
451451 global $wgUser;
452452 $permission = '';
453 - if ( $rc->mAttribs['rc_deleted'] & self::DELETED_RESTRICTED ) {
 453+ if ( $rc->mAttribs['rc_deleted'] & Revision::DELETED_RESTRICTED ) {
454454 $permission = 'suppressrevision';
455 - } elseif ( $field & self::DELETED_TEXT ) {
 455+ } elseif ( $field & Revision::DELETED_TEXT ) {
456456 $permission = 'deletedtext';
457457 } else {
458458 $permission = 'deletedhistory';
Property changes on: trunk/phase3/includes/ChangesList.php
___________________________________________________________________
Name: svn:mergeinfo
459459 + /branches/REL1_15/phase3/includes/ChangesList.php:51646
/branches/wmf-deployment/includes/ChangesList.php:53381,57589

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r57530Replace broken nested terneries (causing a nasty bug where all admins could v...werdna19:40, 8 October 2009

Status & tagging log