Author: david
Date: Thu Dec 8 15:18:56 2011
New Revision: 10384
Log:
Don't move original asset file
Modified:
trunk/lib/model/QubitDigitalObject.php
Modified: trunk/lib/model/QubitDigitalObject.php
==============================================================================
--- trunk/lib/model/QubitDigitalObject.php Thu Dec 8 15:17:49 2011
(r10383)
+++ trunk/lib/model/QubitDigitalObject.php Thu Dec 8 15:18:56 2011
(r10384)
@@ -456,12 +456,9 @@
// If the asset contents are not included but referred, move or copy
if (null !== $assetPath = $asset->getPath())
{
- if (false === @rename($assetPath, $filePathName))
+ if (false === @copy($assetPath, $filePathName))
{
- if (false === @copy($assetPath, $filePathName))
- {
- throw new sfException('File write to '.$filePathName.' failed. See
setting directory and file permissions documentation.');
- }
+ throw new sfException('File write to '.$filePathName.' failed. See
setting directory and file permissions documentation.');
}
}
// If the asset contents are included (HTTP upload)
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.