Fix: rename canvas in templates

This commit is contained in:
Regis Houssin 2009-07-30 17:37:32 +00:00
parent df41472e5f
commit 1305216a53
2 changed files with 4 additions and 4 deletions

View File

@ -203,7 +203,7 @@ if ($_POST["action"] == 'update' && ($user->rights->produit->creer || $user->rig
}
// Produit spécifique
if ($product->canvas <> '' && file_exists('canvas/product.'.$product->canvas.'.class.php') )
if ($product->canvas <> '' && file_exists('templates/product.'.$product->canvas.'.class.php') )
{
$class = 'Product'.ucfirst($product->canvas);
include_once('templates/product.'.$product->canvas.'.class.php');
@ -789,7 +789,7 @@ if ($_GET["id"] || $_GET["ref"])
// Gestion des produits specifiques
if ($conf->global->PRODUCT_CANVAS_ABILITY)
{
if ($product->canvas <> '' && file_exists('canvas/product.'.$product->canvas.'.class.php') )
if ($product->canvas <> '' && file_exists('templates/product.'.$product->canvas.'.class.php') )
{
$class = 'Product'.ucfirst($product->canvas);
include_once('templates/product.'.$product->canvas.'.class.php');

View File

@ -77,10 +77,10 @@ if ($conf->categorie->enabled && isset($_REQUEST['catid']))
*
*/
if ($_GET["canvas"] <> '' && file_exists('canvas/product.'.$_GET["canvas"].'.class.php') )
if ($_GET["canvas"] <> '' && file_exists('templates/product.'.$_GET["canvas"].'.class.php') )
{
$class = 'Product'.ucfirst($_GET["canvas"]);
include_once('canvas/product.'.$_GET["canvas"].'.class.php');
include_once('templates/product.'.$_GET["canvas"].'.class.php');
$object = new $class($db);
$object->LoadListDatas($limit, $offset, $sortfield, $sortorder);