dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89dfbe1
)
Made isDeleted() et all call $this->load() first
author
Aaron Schulz
<aaron@users.mediawiki.org>
Thu, 15 Oct 2009 10:20:19 +0000
(10:20 +0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Thu, 15 Oct 2009 10:20:19 +0000
(10:20 +0000)
includes/filerepo/OldLocalFile.php
patch
|
blob
|
history
diff --git
a/includes/filerepo/OldLocalFile.php
b/includes/filerepo/OldLocalFile.php
index
15fc977
..
d2d78c9
100644
(file)
--- a/
includes/filerepo/OldLocalFile.php
+++ b/
includes/filerepo/OldLocalFile.php
@@
-177,6
+177,7
@@
class OldLocalFile extends LocalFile {
* @return bool
*/
function isDeleted( $field ) {
+ $this->load();
return ($this->deleted & $field) == $field;
}
@@
-185,6
+186,7
@@
class OldLocalFile extends LocalFile {
* @return int
*/
function getVisibility() {
+ $this->load();
return (int)$this->deleted;
}
@@
-195,6
+197,7
@@
class OldLocalFile extends LocalFile {
* @return bool
*/
function userCan( $field ) {
+ $this->load();
if( isset($this->deleted) && ($this->deleted & $field) ) {
global $wgUser;
$permission = '';