Author: garak
Date: 2010-09-03 15:37:47 +0200 (Fri, 03 Sep 2010)
New Revision: 30816
Modified:
plugins/sfAssetsLibraryPlugin/branches/1.3/lib/model/plugin/PluginsfAssetFolder.php
Log:
[sfAssetsLibraryPlugin] fixed a bug for moved files. Closes #8363
Modified:
plugins/sfAssetsLibraryPlugin/branches/1.3/lib/model/plugin/PluginsfAssetFolder.php
===================================================================
---
plugins/sfAssetsLibraryPlugin/branches/1.3/lib/model/plugin/PluginsfAssetFolder.php
2010-09-03 13:09:38 UTC (rev 30815)
+++
plugins/sfAssetsLibraryPlugin/branches/1.3/lib/model/plugin/PluginsfAssetFolder.php
2010-09-03 13:37:47 UTC (rev 30816)
@@ -262,7 +262,7 @@
$folders = sfFinder::type('dir')->maxdepth(0)->in($old_path);
foreach ($folders as $folder)
{
- $new_name = substr($folder, strlen($old_path));
+ $new_name = substr($folder, strlen(realpath($old_path)));
$success = self::movePhysically($folder, $new_path . '/' . $new_name)
&& $success;
}
}
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" 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/symfony-svn?hl=en.