Works on canvas capability
This commit is contained in:
parent
dc1df590ab
commit
e59a1f489c
@ -93,6 +93,7 @@ if ($_GET["canvas"] <> '' && file_exists('canvas/'.$_GET["canvas"].'/product.'.$
|
|||||||
|
|
||||||
$object = new $class($db);
|
$object = new $class($db);
|
||||||
$object->LoadListDatas($limit, $offset, $sortfield, $sortorder);
|
$object->LoadListDatas($limit, $offset, $sortfield, $sortorder);
|
||||||
|
$title = $object->getTitle();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -199,7 +200,7 @@ if ($resql)
|
|||||||
$helpurl='EN:Module_Services_En|FR:Module_Services|ES:Módulo_Servicios';
|
$helpurl='EN:Module_Services_En|FR:Module_Services|ES:Módulo_Servicios';
|
||||||
}
|
}
|
||||||
|
|
||||||
llxHeader("",$helpurl,$texte);
|
llxHeader("",$title,$helpurl,$texte);
|
||||||
|
|
||||||
// Displays product removal confirmation
|
// Displays product removal confirmation
|
||||||
if (!empty($_GET['delprod']))
|
if (!empty($_GET['delprod']))
|
||||||
@ -230,7 +231,7 @@ if ($resql)
|
|||||||
$picto='title.png';
|
$picto='title.png';
|
||||||
if (empty($conf->browser->firefox)) $picto='title.gif';
|
if (empty($conf->browser->firefox)) $picto='title.gif';
|
||||||
$smarty->assign('title_picto', img_picto('',$picto));
|
$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
|
// Check if a custom template is present
|
||||||
if (file_exists(DOL_DOCUMENT_ROOT . '/theme/'.$conf->theme.'/templates/product/'.$_GET["canvas"].'/liste.tpl'))
|
if (file_exists(DOL_DOCUMENT_ROOT . '/theme/'.$conf->theme.'/templates/product/'.$_GET["canvas"].'/liste.tpl'))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user