Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Commit

Permalink
corrections à la volée après mise en prod
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Quinton committed Aug 20, 2018
1 parent 0127751 commit a0a8c37
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
3 changes: 3 additions & 0 deletions framework/common.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
3 changes: 3 additions & 0 deletions framework/identification/identification.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
8 changes: 6 additions & 2 deletions install/alter_2.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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');

0 comments on commit a0a8c37

Please sign in to comment.