Add form setup and backport as default setup builder

This commit is contained in:
John BOTELLA 2022-05-21 00:36:13 +02:00
parent 72bfedaba1
commit f8dcc1daaf

View File

@ -249,7 +249,7 @@ if ($dirins && $action == 'initmodule' && $modulename) {
$error++; $error++;
$langs->load("errors"); $langs->load("errors");
setEventMessages($langs->trans("ErrorFailToCreateDir", $backportDest), null, 'errors'); setEventMessages($langs->trans("ErrorFailToCreateDir", $backportDest), null, 'errors');
$tryToCopyFromSetupClass = true; $tryToCopyFromSetupClass = false;
} }
if ($tryToCopyFromSetupClass) { if ($tryToCopyFromSetupClass) {
@ -260,7 +260,7 @@ if ($dirins && $action == 'initmodule' && $modulename) {
$langs->load("errors"); $langs->load("errors");
setEventMessages($langs->trans("ErrorFailToCopyFile", $backportFileSrc, $backportFileDest), null, 'errors'); setEventMessages($langs->trans("ErrorFailToCopyFile", $backportFileSrc, $backportFileDest), null, 'errors');
} else { } else {
setEventMessages($langs->trans("AllFilesDidAlreadyExist", $backportFileDest), null, 'warnings'); setEventMessages($langs->trans("FileDidAlreadyExist", $backportFileDest), null, 'warnings');
} }
} }
} }