Use Dossier::connect (singleton) instead of new Databass(dossier_id)

This commit is contained in:
Dany De Bontridder 2015-09-15 12:12:50 +02:00
parent 19e6e8ca6d
commit 8fc56e3ef4
87 changed files with 105 additions and 149 deletions

View file

@ -31,7 +31,7 @@ require_once NOALYSS_INCLUDE.'/class/class_pre_op_ach.php';
require_once NOALYSS_INCLUDE.'/lib/class_ipopup.php';
$gDossier = dossier::id();
global $g_parameter;
$cn = new Database(dossier::id());
$cn = Dossier::connect();
//menu = show a list of ledger
$str_dossier = dossier::get();
$ac = "ac=" . $_REQUEST['ac'];