From 5ad8a720b400da3c26b739e8a3f2269a88e2de3d Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Thu, 21 Jun 2012 02:42:01 +0000 Subject: [PATCH] In ajax before calling plugin set properly $cn,$g_user and $g_parameter --- html/ajax.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/html/ajax.php b/html/ajax.php index 9194f529e..3cd8a224b 100644 --- a/html/ajax.php +++ b/html/ajax.php @@ -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);