[Easymod-cvs] easymod2/mods/easymod/includes admin_easymod.php.txt,1.6,1.7
Status: Beta
Brought to you by:
wgeric
From: Eric F. <wg...@us...> - 2005-05-09 22:00:54
|
Update of /cvsroot/easymod/easymod2/mods/easymod/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8279/mods/easymod/includes Modified Files: admin_easymod.php.txt Log Message: Made it so directories from the COPY action are created on the post process screen (Step 3), right before moving the files, instead of when the COPY action is first processed (Step 1). Index: admin_easymod.php.txt =================================================================== RCS file: /cvsroot/easymod/easymod2/mods/easymod/includes/admin_easymod.php.txt,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** admin_easymod.php.txt 8 May 2005 03:04:19 -0000 1.6 --- admin_easymod.php.txt 9 May 2005 22:00:44 -0000 1.7 *************** *** 2054,2058 **** for ($x=0; $x<count($final); $x++) { ! $command_file->modio_mkdirs_copy( $final[$x]['to_path']) ; $command_file->afile[] = 'copy ' . $final[$x]['from_path'] . $final[$x]['from_file'] . ' ../../../' . $final[$x]['to_path'] . $final[$x]['to_file'] ; --- 2054,2058 ---- for ($x=0; $x<count($final); $x++) { ! //$command_file->modio_mkdirs_copy( $final[$x]['to_path']) ; $command_file->afile[] = 'copy ' . $final[$x]['from_path'] . $final[$x]['from_file'] . ' ../../../' . $final[$x]['to_path'] . $final[$x]['to_file'] ; *************** *** 2836,2839 **** --- 2836,2842 ---- } + // create the directory before moving files into it + $command_file->modio_mkdirs_copy(dirname($parms[2])); + // now the magic happens ;-) $ret_value = $command_file->modio_move( $parms[2], $parms[1], $mod_count, $link, $type) ; |