Qual: Amélioration gestion erreur install
This commit is contained in:
parent
d154db0b5d
commit
ef71cf1404
@ -219,7 +219,9 @@ if ($_POST["action"] == "set")
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ($db->errno() == 'DB_ERROR_CANNOT_CREATE' || eregi('duplicate key name',$db->error()))
|
if ($db->errno() == 'DB_ERROR_KEY_NAME_ALREADY_EXISTS' ||
|
||||||
|
$db->errno() == 'DB_ERROR_CANNOT_CREATE' ||
|
||||||
|
eregi('duplicate key name',$db->error()))
|
||||||
{
|
{
|
||||||
//print "<td>Déjà existante</td></tr>";
|
//print "<td>Déjà existante</td></tr>";
|
||||||
$key_exists = 1;
|
$key_exists = 1;
|
||||||
|
|||||||
@ -122,12 +122,18 @@ if ($_POST["action"] == "set")
|
|||||||
|
|
||||||
print "<br>";
|
print "<br>";
|
||||||
|
|
||||||
|
// Fin install
|
||||||
print $langs->trans("SystemIsInstalled")."<br>";
|
print $langs->trans("SystemIsInstalled")."<br>";
|
||||||
print $langs->trans("YouNeedToPersonalizeSetup")."<br>";
|
print $langs->trans("WarningRemoveInstallDir")."<br>";
|
||||||
|
|
||||||
print '<br><a href="'.$dolibarr_main_url_root .'/admin/index.php?mainmenu=home&leftmenu=setup">';
|
print "<br>";
|
||||||
|
|
||||||
|
// Lien vers setup
|
||||||
|
print $langs->trans("YouNeedToPersonalizeSetup")."<br>";
|
||||||
|
print '<a href="'.$dolibarr_main_url_root .'/admin/index.php?mainmenu=home&leftmenu=setup">';
|
||||||
print $langs->trans("GoToSetupArea");
|
print $langs->trans("GoToSetupArea");
|
||||||
print '</a>';
|
print '</a>';
|
||||||
|
|
||||||
|
|
||||||
pFooter(1);
|
pFooter(1);
|
||||||
?>
|
?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user