From 5d88d0c6a4327a5f08460671fabde673c6f3985b Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 5 Jan 2007 15:35:17 +0000 Subject: [PATCH] Limite le code quand les canvas ne sont pas actives --- htdocs/product/pre.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/product/pre.inc.php b/htdocs/product/pre.inc.php index fd5684f7069..099bc8024f8 100644 --- a/htdocs/product/pre.inc.php +++ b/htdocs/product/pre.inc.php @@ -1,6 +1,7 @@ +/* Copyright (C) 2001-2007 Rodolphe Quiedeville * Copyright (C) 2004-2006 Laurent Destailleur + * Copyright (C) 2007 Auguria SARL * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -59,7 +60,7 @@ function llxHeader($head = "", $urlp = "", $title="") // Produit specifique $dir = DOL_DOCUMENT_ROOT . "/product/canvas/"; - if(is_dir($dir)) + if(is_dir($dir) && $conf->global->PRODUCT_CANVAS_ABILITY==='1' ) { if ($handle = opendir($dir)) {