@@ -73,16 +73,16 @@ |
||
| 73 | 73 | $GLOBALS['xoopsTpl']->assign('building_directory', sprintf(_AM_TDMCREATE_BUILDING_DIRECTORY, $moduleDirname)); |
| 74 | 74 | // Copy this module in root modules |
| 75 | 75 | if (1 == $moduleObj->getVar('mod_inroot_copy')) { |
| 76 | - if (isset($moduleDirname)) { |
|
| 77 | - // Clear this module if it's in root/modules |
|
| 78 | - // Warning: If you have an older operating module with the same name, |
|
| 79 | - // it's good to make a copy in another safe folder, |
|
| 80 | - // otherwise it will be deleted irreversibly. |
|
| 81 | - if (is_dir($toDir)) { |
|
| 82 | - TDMCreate_clearDir($toDir); |
|
| 83 | - } |
|
| 84 | - } |
|
| 85 | - TDMCreate_copyr($fromDir, $toDir); |
|
| 76 | + if (isset($moduleDirname)) { |
|
| 77 | + // Clear this module if it's in root/modules |
|
| 78 | + // Warning: If you have an older operating module with the same name, |
|
| 79 | + // it's good to make a copy in another safe folder, |
|
| 80 | + // otherwise it will be deleted irreversibly. |
|
| 81 | + if (is_dir($toDir)) { |
|
| 82 | + TDMCreate_clearDir($toDir); |
|
| 83 | + } |
|
| 84 | + } |
|
| 85 | + TDMCreate_copyr($fromDir, $toDir); |
|
| 86 | 86 | } |
| 87 | 87 | break; |
| 88 | 88 | |
@@ -229,7 +229,7 @@ |
||
| 229 | 229 | break; |
| 230 | 230 | case 9: |
| 231 | 231 | case 10: |
| 232 | - $fValues = implode("', '", explode(',', str_replace(' ', '', $fieldValue))); |
|
| 232 | + $fValues = implode("', '", explode(',', str_replace(' ', '', $fieldValue))); |
|
| 233 | 233 | $type = $fieldTypeName.'(\''.$fValues.'\')'; // Used with comma separator |
| 234 | 234 | break; |
| 235 | 235 | case 11: |