Fix: MAIN_VERSION_LAST_INSTALL was not saved
This commit is contained in:
parent
2aa5173f29
commit
f0aec97efb
@ -21,11 +21,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\file htdocs/install/etape5.php
|
* \file htdocs/install/etape5.php
|
||||||
\ingroup install
|
* \ingroup install
|
||||||
\brief Page de fin d'installation ou de migration
|
* \brief Page de fin d'installation ou de migration
|
||||||
\version $Id$
|
* \version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
include_once("./inc.php");
|
include_once("./inc.php");
|
||||||
|
|
||||||
@ -54,8 +54,8 @@ dolibarr_install_syslog("etape5: Entering etape5.php page", LOG_INFO);
|
|||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Actions
|
* Actions
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// If install, check pass and pass_verif used to create admin account
|
// If install, check pass and pass_verif used to create admin account
|
||||||
if ($_POST["action"] == "set")
|
if ($_POST["action"] == "set")
|
||||||
@ -81,8 +81,8 @@ if ($_POST["action"] == "set")
|
|||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* View
|
* View
|
||||||
*/
|
*/
|
||||||
|
|
||||||
pHeader($langs->trans("SetupEnd"),"etape5");
|
pHeader($langs->trans("SetupEnd"),"etape5");
|
||||||
|
|
||||||
@ -160,22 +160,16 @@ if ($_POST["action"] == "set" || $_POST["action"] == "upgrade")
|
|||||||
|
|
||||||
if ($success)
|
if ($success)
|
||||||
{
|
{
|
||||||
// Si install non Français, on configure pour fonctionner en mode internationnal
|
$db->begin();
|
||||||
if ($langs->defaultlang != "fr_FR")
|
|
||||||
{
|
|
||||||
$db->query("UPDATE llx_const set value='eldy_backoffice.php' WHERE name='MAIN_MENU_BARRETOP';");
|
|
||||||
$db->query("UPDATE llx_const set value='eldy_backoffice.php' WHERE name='MAIN_MENU_BARRELEFT';");
|
|
||||||
|
|
||||||
$db->query("UPDATE llx_const set value='eldy_frontoffice.php' WHERE name='MAIN_MENUFRONT_BARRETOP';");
|
|
||||||
$db->query("UPDATE llx_const set value='eldy_frontoffice.php' WHERE name='MAIN_MENUFRONT_BARRELEFT';");
|
|
||||||
}
|
|
||||||
|
|
||||||
dolibarr_install_syslog('install/etape5.php set MAIN_VERSION_LAST_INSTALL const to '.DOL_VERSION, LOG_DEBUG);
|
dolibarr_install_syslog('install/etape5.php set MAIN_VERSION_LAST_INSTALL const to '.DOL_VERSION, LOG_DEBUG);
|
||||||
$db->query("DELETE FROM llx_const WHERE name='MAIN_VERSION_LAST_INSTALL'");
|
$db->query("DELETE FROM llx_const WHERE name='MAIN_VERSION_LAST_INSTALL'");
|
||||||
$db->query("INSERT INTO llx_const(name,value,type,visible,note,entity) values('MAIN_VERSION_LAST_INSTALL','".DOL_VERSION."','chaine',0,'Dolibarr version for last install,0')");
|
$db->query("INSERT INTO llx_const(name,value,type,visible,note,entity) values('MAIN_VERSION_LAST_INSTALL','".DOL_VERSION."','chaine',0,'Dolibarr version when install',0)");
|
||||||
|
|
||||||
dolibarr_install_syslog('install/etape5.php Remove MAIN_NOT_INSTALLED const', LOG_DEBUG);
|
dolibarr_install_syslog('install/etape5.php Remove MAIN_NOT_INSTALLED const', LOG_DEBUG);
|
||||||
$db->query("DELETE FROM llx_const WHERE name='MAIN_NOT_INSTALLED'");
|
$db->query("DELETE FROM llx_const WHERE name='MAIN_NOT_INSTALLED'");
|
||||||
|
|
||||||
|
$db->commit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user