Commit 34eba65fa7ea97178dc2d1b030d66dafe27ac1cc
1 parent
0f22cfc3
Don't call generateStoragePath on a document with an existing storage
path. git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5383 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
1 additions
and
1 deletions
lib/storage/ondiskhashedstoragemanager.inc.php
| ... | ... | @@ -232,7 +232,7 @@ class KTOnDiskHashedStorageManager extends KTStorageManager { |
| 232 | 232 | $sDocumentRoot = $oConfig->get('urls/documentRoot'); |
| 233 | 233 | |
| 234 | 234 | $sNewPath = $this->generateStoragePath($oNewDocument); |
| 235 | - $sFullOldPath = sprintf("%s/%s", $sDocumentRoot, $this->generateStoragePath($oSrcDocument)); | |
| 235 | + $sFullOldPath = sprintf("%s/%s", $sDocumentRoot, $this->getPath($oSrcDocument)); | |
| 236 | 236 | $sFullNewPath = sprintf("%s/%s", $sDocumentRoot, $sNewPath); |
| 237 | 237 | |
| 238 | 238 | $res = KTUtil::copyFile($sFullOldPath, $sFullNewPath); | ... | ... |