In ajax before calling plugin set properly $cn,$g_user and $g_parameter
This commit is contained in:
parent
4fefaa03a2
commit
5ad8a720b4
1 changed files with 3 additions and 1 deletions
|
|
@ -12,10 +12,12 @@ require_once('class_user.php');
|
|||
require_once('class_extension.php');
|
||||
if ( !isset ($_REQUEST['gDossier'])) exit();
|
||||
|
||||
require_once 'class_own.php';
|
||||
mb_internal_encoding("UTF-8");
|
||||
|
||||
$cn=new Database(dossier::id());
|
||||
global $g_user,$cn,$g_parameter;
|
||||
$cn=new Database(dossier::id());
|
||||
$g_parameter=new Own($cn);
|
||||
$g_user=new User($cn);
|
||||
$g_user->check(true);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue