@@ -48,8 +48,8 @@ |
||
48 | 48 | if ($dirInfo->isDir()) { |
49 | 49 | // The directory exists so rename it |
50 | 50 | $date = date('Y-m-d'); |
51 | - if (!rename($uploadDirectory, $uploadDirectory . "_bak_$date")) { |
|
52 | - $module->setErrors(sprintf(constant('CO_' . $moduleDirNameUpper . '_ERROR_BAD_DEL_PATH'), $uploadDirectory)); |
|
51 | + if (!rename($uploadDirectory, $uploadDirectory."_bak_$date")) { |
|
52 | + $module->setErrors(sprintf(constant('CO_'.$moduleDirNameUpper.'_ERROR_BAD_DEL_PATH'), $uploadDirectory)); |
|
53 | 53 | $success = false; |
54 | 54 | } |
55 | 55 | } |