Limite le code quand les canvas ne sont pas actives
This commit is contained in:
parent
f3cbca4b51
commit
5d88d0c6a4
@ -1,6 +1,7 @@
|
||||
<?php
|
||||
/* Copyright (C) 2001-2006 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
/* Copyright (C) 2001-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2007 Auguria SARL <info@auguria.org>
|
||||
*
|
||||
* 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))
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user