Commit 4e64aecfac9db03d076e79ad1d66a8c984add2c2

Authored by bshuttle
1 parent fe082d1d

merge in 1189 fix.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5745 c91229c3-7414-0410-bfa2-8a42b809f60b
lib/documentmanagement/documentutil.inc.php
... ... @@ -61,10 +61,6 @@ class KTDocumentUtil {
61 61 KTDocumentUtil::copyMetadata($oDocument, $iPreviousMetadataVersion);
62 62  
63 63 if (!$oStorage->upload($oDocument, $sFilename)) {
64   - // reinstate the backup
65   - copy($sBackupPath, $oDocument->getPath());
66   - // remove the backup
67   - unlink($sBackupPath);
68 64 return PEAR::raiseError(_kt("An error occurred while storing the new file"));
69 65 }
70 66  
... ...