From 17fb8effe962255982d50009e96c6a49ed492a88 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 19 Sep 2007 23:35:52 +0000 Subject: [PATCH] Perf: Optimisation chargement class --- htdocs/commande/fiche.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index d1be9ae558a..3b5b9cc46cf 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -33,7 +33,6 @@ require('./pre.inc.php'); require_once(DOL_DOCUMENT_ROOT ."/includes/modules/commande/modules_commande.php"); require_once(DOL_DOCUMENT_ROOT.'/commande/commande.class.php'); -require_once(DOL_DOCUMENT_ROOT.'/discount.class.php'); require_once(DOL_DOCUMENT_ROOT.'/actioncomm.class.php'); require_once(DOL_DOCUMENT_ROOT.'/lib/CMailFile.class.php'); require_once(DOL_DOCUMENT_ROOT."/lib/order.lib.php"); @@ -1352,7 +1351,7 @@ else { if ($objp->description == '(CREDIT_NOTE)') { - include_once( + require_once(DOL_DOCUMENT_ROOT.'/discount.class.php'); $discount=new DiscountAbsolute($db); $discount->fetch($objp->fk_remise_except); print ' - '.$langs->transnoentities("DiscountFromCreditNote",$discount->getNomUrl(0));