From: Aaron Schulz Date: Wed, 30 Sep 2009 19:16:37 +0000 (+0000) Subject: isDeleted() et all should be sure to call $this->load() X-Git-Tag: 1.31.0-rc.0~39450 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=7448f89aa85b1f14d4b22a869aae00c0b35e3e4a;p=lhc%2Fweb%2Fwiklou.git isDeleted() et all should be sure to call $this->load() --- diff --git a/includes/filerepo/ArchivedFile.php b/includes/filerepo/ArchivedFile.php index 1ec075333a..a256f1f4eb 100644 --- a/includes/filerepo/ArchivedFile.php +++ b/includes/filerepo/ArchivedFile.php @@ -358,6 +358,7 @@ class ArchivedFile * @return bool */ public function isDeleted( $field ) { + $this->load(); return ($this->deleted & $field) == $field; } @@ -368,6 +369,7 @@ class ArchivedFile * @return bool */ public function userCan( $field ) { + $this->load(); if( ($this->deleted & $field) == $field ) { global $wgUser; $permission = ( $this->deleted & File::DELETED_RESTRICTED ) == File::DELETED_RESTRICTED