From a0a8c379557733a6d6ec2e0785101bea576740d4 Mon Sep 17 00:00:00 2001 From: Eric Quinton Date: Mon, 20 Aug 2018 17:51:12 +0200 Subject: [PATCH] =?UTF-8?q?corrections=20=C3=A0=20la=20vol=C3=A9e=20apr?= =?UTF-8?q?=C3=A8s=20mise=20en=20prod?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- framework/common.inc.php | 3 +++ framework/identification/identification.class.php | 3 +++ install/alter_2.0.sql | 8 ++++++-- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/framework/common.inc.php b/framework/common.inc.php index d94c4f18..1ab7e872 100644 --- a/framework/common.inc.php +++ b/framework/common.inc.php @@ -155,6 +155,9 @@ $langue = explode ( ';', $_SERVER ['HTTP_ACCEPT_LANGUAGE'] ); $langue = substr ( $langue [0], 0, 2 ); } + if (!isset($langue)) { + $langue = $language = "fr"; + } /* * Mise a niveau du langage */ diff --git a/framework/identification/identification.class.php b/framework/identification/identification.class.php index e8f76f46..5b79b7ac 100644 --- a/framework/identification/identification.class.php +++ b/framework/identification/identification.class.php @@ -872,6 +872,9 @@ function setLog($login, $module, $commentaire = NULL) if (is_null($module)) { $module = "unknown"; } + if (!isset($_SESSION["MASKDATELONG"])) { + $_SESSION["MASKDATELONG"] = "d/m/Y H:i:s"; + } $data["nom_module"] = $GACL_aco . "-" . $module; $data["log_date"] = date($_SESSION["MASKDATELONG"]); $data["ipaddress"] = $this->getIPClientAddress(); diff --git a/install/alter_2.0.sql b/install/alter_2.0.sql index be6f21a8..263a86a8 100644 --- a/install/alter_2.0.sql +++ b/install/alter_2.0.sql @@ -58,9 +58,13 @@ COMMENT ON COLUMN "dbparam"."dbparam_value" IS 'Valeur du paramètre'; insert into dbparam(dbparam_id, dbparam_name) values (1, 'APPLI_title'); +insert into dbversion (dbversion_number, dbversion_date) +values ('2.0', '2018-08-17'); + +set search_path = public; + create sequence seq_espece_espece_id owned by espece.espece_id; alter table espece alter column espece_id set default nextval ('seq_espece_espece_id' ::regclass) ; select setval('seq_espece_espece_id', (select max(espece_id) from espece)); -insert into dbversion (dbversion_number, dbversion_date) -values ('2.0', '2018-08-17'); +