start to use $cn as global database connx
This commit is contained in:
parent
5e40badf8b
commit
dcd1095130
7 changed files with 8 additions and 7 deletions
|
|
@ -15,7 +15,7 @@ if ( !isset ($_REQUEST['gDossier'])) exit();
|
|||
mb_internal_encoding("UTF-8");
|
||||
|
||||
$cn=new Database(dossier::id());
|
||||
global $g_user;
|
||||
global $g_user,$cn,$g_parameter;
|
||||
$g_user=new User($cn);
|
||||
$g_user->check(true);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue