phpcompta-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpcompta-dev] r4954 - phpcompta/trunk/html


From: phpcompta-dev
Subject: [Phpcompta-dev] r4954 - phpcompta/trunk/html
Date: Thu, 21 Jun 2012 04:42:02 +0200 (CEST)

Author: danydb
Date: 2012-06-21 04:42:01 +0200 (Thu, 21 Jun 2012)
New Revision: 4954

Modified:
   phpcompta/trunk/html/ajax.php
Log:
In ajax before calling plugin set properly $cn,$g_user and $g_parameter

Modified: phpcompta/trunk/html/ajax.php
===================================================================
--- phpcompta/trunk/html/ajax.php       2012-06-20 22:42:33 UTC (rev 4953)
+++ phpcompta/trunk/html/ajax.php       2012-06-21 02:42:01 UTC (rev 4954)
@@ -12,10 +12,12 @@
 require_once('class_extension.php');
 if ( !isset ($_REQUEST['gDossier'])) exit();
 
+require_once 'class_own.php';
 mb_internal_encoding("UTF-8");
 
+global $g_user,$cn,$g_parameter;
 $cn=new Database(dossier::id());
-global $g_user,$cn,$g_parameter;
+$g_parameter=new Own($cn);
 $g_user=new User($cn);
 $g_user->check(true);
 



---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu



reply via email to

[Prev in Thread] Current Thread [Next in Thread]