*Look only at unique keys. If a file has versions that have the same key, this can...
authorAaron Schulz <aaron@users.mediawiki.org>
Mon, 23 Jul 2007 23:46:53 +0000 (23:46 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Mon, 23 Jul 2007 23:46:53 +0000 (23:46 +0000)
includes/filerepo/LocalRepo.php

index ae56aa9..72f9e9a 100644 (file)
@@ -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";