Fix: rename canvas in templates
This commit is contained in:
parent
df41472e5f
commit
1305216a53
@ -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');
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user