bug 20739: fix call to missing function
authorAaron Schulz <aaron@users.mediawiki.org>
Sat, 19 Sep 2009 16:28:25 +0000 (16:28 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sat, 19 Sep 2009 16:28:25 +0000 (16:28 +0000)
includes/filerepo/ArchivedFile.php

index 46a295d..4aeeb0c 100644 (file)
@@ -343,6 +343,15 @@ class ArchivedFile
                return $this->description;
        }
 
+       /**
+        * Returns the deletion bitfield
+        * @return int
+        */
+       public function getVisibility() {
+               $this->load();
+               return $this->deleted;
+       }
+
        /**
         * int $field one of DELETED_* bitfield constants
         * for file or revision rows