From e59a1f489c1b114b450987e486eb432adfff88f5 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 22 Mar 2010 20:42:59 +0000 Subject: [PATCH] Works on canvas capability --- htdocs/product/liste.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/product/liste.php b/htdocs/product/liste.php index 70024fef82b..20f947faba0 100644 --- a/htdocs/product/liste.php +++ b/htdocs/product/liste.php @@ -93,6 +93,7 @@ if ($_GET["canvas"] <> '' && file_exists('canvas/'.$_GET["canvas"].'/product.'.$ $object = new $class($db); $object->LoadListDatas($limit, $offset, $sortfield, $sortorder); + $title = $object->getTitle(); } else { @@ -199,7 +200,7 @@ if ($resql) $helpurl='EN:Module_Services_En|FR:Module_Services|ES:Módulo_Servicios'; } - llxHeader("",$helpurl,$texte); + llxHeader("",$title,$helpurl,$texte); // Displays product removal confirmation if (!empty($_GET['delprod'])) @@ -230,7 +231,7 @@ if ($resql) $picto='title.png'; if (empty($conf->browser->firefox)) $picto='title.gif'; $smarty->assign('title_picto', img_picto('',$picto)); - $smarty->assign('title_text', $object->getTitle()); + $smarty->assign('title_text', $title); // Check if a custom template is present if (file_exists(DOL_DOCUMENT_ROOT . '/theme/'.$conf->theme.'/templates/product/'.$_GET["canvas"].'/liste.tpl'))