Index: trunk/phase3/includes/filerepo/OldLocalFile.php |
— | — | @@ -181,6 +181,14 @@ |
182 | 182 | } |
183 | 183 | |
184 | 184 | /** |
| 185 | + * Returns bitfield value |
| 186 | + * @return int |
| 187 | + */ |
| 188 | + function getVisibility() { |
| 189 | + return (int)$this->deleted; |
| 190 | + } |
| 191 | + |
| 192 | + /** |
185 | 193 | * Determine if the current user is allowed to view a particular |
186 | 194 | * field of this image file, if it's marked as deleted. |
187 | 195 | * @param int $field |
Index: trunk/phase3/includes/filerepo/File.php |
— | — | @@ -938,6 +938,14 @@ |
939 | 939 | function isDeleted( $field ) { |
940 | 940 | return false; |
941 | 941 | } |
| 942 | + |
| 943 | + /** |
| 944 | + * Return the deletion bitfield |
| 945 | + * STUB |
| 946 | + */ |
| 947 | + function getVisibility() { |
| 948 | + return 0; |
| 949 | + } |
942 | 950 | |
943 | 951 | /** |
944 | 952 | * Was this file ever deleted from the wiki? |