From: Andrew Garrett Date: Thu, 15 Oct 2009 09:26:12 +0000 (+0000) Subject: Follow-up to r57602, change DELETED_TEXT to DELETED_FILE, there is no such class... X-Git-Tag: 1.31.0-rc.0~39278 X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=commitdiff_plain;h=74a2222e68b46363f31134887f5592e83d4dfee6;p=lhc%2Fweb%2Fwiklou.git Follow-up to r57602, change DELETED_TEXT to DELETED_FILE, there is no such class constant as File::DELETED_TEXT, as testing should have told you. --- diff --git a/includes/filerepo/ArchivedFile.php b/includes/filerepo/ArchivedFile.php index f23d224ed6..ebee2b664c 100644 --- a/includes/filerepo/ArchivedFile.php +++ b/includes/filerepo/ArchivedFile.php @@ -382,7 +382,7 @@ class ArchivedFile $permission = ''; if ( $this->deleted & File::DELETED_RESTRICTED ) { $permission = 'suppressrevision'; - } elseif ( $field & File::DELETED_TEXT ) { + } elseif ( $field & File::DELETED_FILE ) { $permission = 'deletedtext'; } else { $permission = 'deletedhistory'; diff --git a/includes/filerepo/OldLocalFile.php b/includes/filerepo/OldLocalFile.php index 49d90ab493..15fc977ab0 100644 --- a/includes/filerepo/OldLocalFile.php +++ b/includes/filerepo/OldLocalFile.php @@ -200,7 +200,7 @@ class OldLocalFile extends LocalFile { $permission = ''; if ( $this->deleted & File::DELETED_RESTRICTED ) { $permission = 'suppressrevision'; - } elseif ( $field & File::DELETED_TEXT ) { + } elseif ( $field & File::DELETED_FILE ) { $permission = 'deletedtext'; } else { $permission = 'deletedhistory';