Use Dossier::connect (singleton) instead of new Databass(dossier_id)
This commit is contained in:
parent
19e6e8ca6d
commit
8fc56e3ef4
87 changed files with 105 additions and 149 deletions
|
|
@ -22,7 +22,7 @@ require_once '../include/constant.php';
|
|||
require_once NOALYSS_INCLUDE.'/lib/class_database.php';
|
||||
require_once NOALYSS_INCLUDE.'/class/class_user.php';
|
||||
|
||||
$cn=new Database($_GET['gDossier']);
|
||||
$cn=Dossier::connect();
|
||||
global $g_user;
|
||||
$g_user=new User($cn);
|
||||
$g_user->Check();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue