r22476 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r22475‎ | r22476 | r22477 >
Date:15:35, 27 May 2007
Author:aaron
Status:old
Tags:
Comment:
*Call File::DELETED_RESTRICTED, not Revision::DELETED_RESTRICTED
Modified paths:
  • /branches/filerepo-work/phase3/includes/filerepo/ArchivedFile.php (modified) (history)

Diff [purge]

Index: branches/filerepo-work/phase3/includes/filerepo/ArchivedFile.php
@@ -98,7 +98,7 @@
9999 if( isset($this->mDeleted) && ($this->mDeleted & $field) == $field ) {
100100 // images
101101 global $wgUser;
102 - $permission = ( $this->mDeleted & Revision::DELETED_RESTRICTED ) == Revision::DELETED_RESTRICTED
 102+ $permission = ( $this->mDeleted & File::DELETED_RESTRICTED ) == File::DELETED_RESTRICTED
103103 ? 'hiderevision'
104104 : 'deleterevision';
105105 wfDebug( "Checking for $permission due to $field match on $this->mDeleted\n" );