Code quality : use as often as possible global $g_user instead of recreating a new User object
This commit is contained in:
parent
d86a5d4a44
commit
652cf8d4c7
50 changed files with 221 additions and 255 deletions
|
|
@ -15,8 +15,9 @@ if ( !isset ($_REQUEST['gDossier'])) exit();
|
|||
mb_internal_encoding("UTF-8");
|
||||
|
||||
$cn=new Database(dossier::id());
|
||||
$user=new User($cn);
|
||||
$user->check(true);
|
||||
global $g_user;
|
||||
$g_user=new User($cn);
|
||||
$g_user->check(true);
|
||||
|
||||
/* if a code has been asked */
|
||||
if (isset($_REQUEST['plugin_code']) )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue