File should still count as existing if hidden
authorAaron Schulz <aaron@users.mediawiki.org>
Mon, 17 Mar 2008 19:57:31 +0000 (19:57 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Mon, 17 Mar 2008 19:57:31 +0000 (19:57 +0000)
includes/filerepo/LocalFile.php

index 60b60d4..87f2e43 100644 (file)
@@ -236,13 +236,7 @@ class LocalFile extends File
                        $this->$name = $value;
                }
                $this->fileExists = true;
-               // Check if the file is hidden...
-               if( $this->isDeleted(File::DELETED_FILE) ) {
-                       $this->fileExists = false; // treat as not existing
-               } else {
-                       // Check for rows from a previous schema, quietly upgrade them
-                       $this->maybeUpgradeRow();
-               }
+               $this->maybeUpgradeRow();
        }
 
        /**