Fix: missing global declarations

This commit is contained in:
Raphaël Doursenaud 2014-08-20 19:03:58 +02:00
parent 86d91ff698
commit 1d5fb1320b
3 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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';