From: Aaron Schulz Date: Mon, 17 Mar 2008 19:57:31 +0000 (+0000) Subject: File should still count as existing if hidden X-Git-Tag: 1.31.0-rc.0~49045 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=86d2975346f79a7c792370cd73e721d8be9ccb57;p=lhc%2Fweb%2Fwiklou.git File should still count as existing if hidden --- diff --git a/includes/filerepo/LocalFile.php b/includes/filerepo/LocalFile.php index 60b60d482a..87f2e4302d 100644 --- a/includes/filerepo/LocalFile.php +++ b/includes/filerepo/LocalFile.php @@ -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(); } /**