mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-07 18:18:18 +01:00
Amlioration gestion erreur sauvegarde
This commit is contained in:
@@ -38,6 +38,19 @@ if (! $user->admin)
|
||||
accessforbidden();
|
||||
|
||||
|
||||
if ($file && ! $what)
|
||||
{
|
||||
//print DOL_URL_ROOT.'/dolibarr_export.php';
|
||||
header("Location: ".DOL_URL_ROOT.'/admin/tools/dolibarr_export.php?msg='.urlencode($langs->trans("ErrorFieldRequired",$langs->trans("ExportMethod"))));
|
||||
/*
|
||||
print '<div class="error">'.$langs->trans("ErrorFieldRequired",$langs->trans("ExportMethod")).'</div>';
|
||||
print '<br>';
|
||||
*/
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
|
||||
llxHeader();
|
||||
|
||||
$html=new Form($db);
|
||||
@@ -45,14 +58,6 @@ $html=new Form($db);
|
||||
print_fiche_titre($langs->trans("Backup"),'','setup');
|
||||
print '<br>';
|
||||
|
||||
if ($file && ! $what)
|
||||
{
|
||||
print '<div class="error">'.$langs->trans("ErrorFieldRequired",$langs->trans("ee")).'</div>';
|
||||
print '<br>';
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Increase time limit for script execution and initializes some variables
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user