Fix return page if error
This commit is contained in:
parent
26cb59e2f9
commit
5e75da3319
@ -2069,7 +2069,7 @@ if ($action == 'regeneratesite') {
|
||||
$result = symlink($pathtomedias, $pathtomediasinwebsite);
|
||||
if (!$result) {
|
||||
setEventMessages($langs->trans("ErrorFieldToCreateSymLinkToMedias", $pathtomediasinwebsite, $pathtomedias), null, 'errors');
|
||||
$action = 'importsite';
|
||||
$action = 'preview';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user