From a85c53bb992eff3f08f49c1f77de01c6bfb5fc99 Mon Sep 17 00:00:00 2001 From: ldestail Date: Thu, 11 Aug 2011 14:05:19 +0200 Subject: [PATCH] Fix: Preview of canelle was broken --- htdocs/admin/fournisseur.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/htdocs/admin/fournisseur.php b/htdocs/admin/fournisseur.php index 3b6047e5330..7f95e7b43a4 100644 --- a/htdocs/admin/fournisseur.php +++ b/htdocs/admin/fournisseur.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004-2008 Laurent Destailleur + * Copyright (C) 2004-2011 Laurent Destailleur * Copyright (C) 2005-2011 Regis Houssin * Copyright (C) 2004 Sebastien Di Cintio * Copyright (C) 2004 Benoit Mortier @@ -109,10 +109,11 @@ if ($action == 'specimenfacture') // For invoices // Charge le modele $dir = "/includes/modules/supplier_invoice/pdf/"; $file = "pdf_".$modele.".modules.php"; - if (file_exists($dir.$file)) + $file = dol_buildpath($dir.$file); + if (file_exists($file)) { $classname = "pdf_".$modele; - require_once($dir.$file); + require_once($file); $obj = new $classname($db,$facture);