changeset 1053:e706cbcaf566

Fix export filenames.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 21 Nov 2015 17:16:30 +0200
parents 78449511df14
children c050354b0270
files faptool.php
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/faptool.php	Sat Nov 21 16:23:35 2015 +0200
+++ b/faptool.php	Sat Nov 21 17:16:30 2015 +0200
@@ -576,7 +576,7 @@
     if (wtMakeDir($dstPath, 0755) === false)
       return FALSE;
 
-    $dstFilename = stMakePath(FALSE, FALSE, array($dstPath, $dstFileBase));
+    $dstFilename = stMakePath(FALSE, FALSE, array($dstPath, wtCropFilename($efile["origname"], $cropNames)));
     if (copy($filename, $dstFilename) === false)
     {
       echo "ERROR: Failed to copy '".$filename."' to '".$dstFilename."'\n";