Skip to content
Snippets Groups Projects
Commit ff6368b3 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Merge pull request #1838 from GPCsolutions/triggers_globals

Fix: missing global declarations
parents 04b611f7 1d5fb132
Branches
Tags
No related merge requests found
......@@ -365,7 +365,7 @@ class Fichinter extends CommonObject
*/
function setValid($user)
{
global $langs, $conf;
global $conf;
require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
$error=0;
......
......@@ -154,7 +154,7 @@ class ProductFournisseur extends Product
*/
function update_buyprice($qty, $buyprice, $user, $price_base_type, $fourn, $availability, $ref_fourn, $tva_tx, $charges=0, $remise_percent=0, $remise=0, $newnpr=0)
{
global $conf,$mysoc;
global $conf;
// Clean parameter
if (empty($qty)) $qty=0;
......
......@@ -38,6 +38,7 @@ if (!empty($_SESSION["dol_authmode"]) && ($_SESSION["dol_authmode"] == 'forceuse
die("Disconnection does not work when connection was made in mode ".$_SESSION["dol_authmode"]);
}
global $conf, $langs, $user;
// Appel des triggers
include_once DOL_DOCUMENT_ROOT . '/core/class/interfaces.class.php';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment