From 34eba65fa7ea97178dc2d1b030d66dafe27ac1cc Mon Sep 17 00:00:00 2001 From: Neil Blakey-Milner Date: Tue, 2 May 2006 09:10:26 +0000 Subject: [PATCH] Don't call generateStoragePath on a document with an existing storage path. --- lib/storage/ondiskhashedstoragemanager.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/storage/ondiskhashedstoragemanager.inc.php b/lib/storage/ondiskhashedstoragemanager.inc.php index 00aa182..0e30b49 100644 --- a/lib/storage/ondiskhashedstoragemanager.inc.php +++ b/lib/storage/ondiskhashedstoragemanager.inc.php @@ -232,7 +232,7 @@ class KTOnDiskHashedStorageManager extends KTStorageManager { $sDocumentRoot = $oConfig->get('urls/documentRoot'); $sNewPath = $this->generateStoragePath($oNewDocument); - $sFullOldPath = sprintf("%s/%s", $sDocumentRoot, $this->generateStoragePath($oSrcDocument)); + $sFullOldPath = sprintf("%s/%s", $sDocumentRoot, $this->getPath($oSrcDocument)); $sFullNewPath = sprintf("%s/%s", $sDocumentRoot, $sNewPath); $res = KTUtil::copyFile($sFullOldPath, $sFullNewPath); -- libgit2 0.21.4