From: Aaron Schulz Date: Mon, 23 Jul 2007 23:46:53 +0000 (+0000) Subject: *Look only at unique keys. If a file has versions that have the same key, this can... X-Git-Tag: 1.31.0-rc.0~51975 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=8ff733a3764ecb2017a14853556a7cf66fe546e5;p=lhc%2Fweb%2Fwiklou.git *Look only at unique keys. If a file has versions that have the same key, this can otherwise through errors trying to delete non-existent files during cleanup. --- diff --git a/includes/filerepo/LocalRepo.php b/includes/filerepo/LocalRepo.php index ae56aa901b..72f9e9a6c3 100644 --- a/includes/filerepo/LocalRepo.php +++ b/includes/filerepo/LocalRepo.php @@ -40,6 +40,7 @@ class LocalRepo extends FSRepo { $root = $this->getZonePath( 'deleted' ); $dbw = $this->getMasterDB(); $status = $this->newGood(); + $storageKeys = array_unique($storageKeys); foreach ( $storageKeys as $key ) { $hashPath = $this->getDeletedHashPath( $key ); $path = "$root/$hashPath$key";