From e8024562b8f702af38f7b90bb3e2ee6406413378 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 5 Aug 2009 09:37:51 +0000 Subject: [PATCH] Fix: traduction is already assigned in 'langs' --- htdocs/product/liste.php | 2 -- htdocs/product/templates/livre/liste.tpl | 8 ++++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/htdocs/product/liste.php b/htdocs/product/liste.php index 77337ab12b0..c3321c1a6d4 100644 --- a/htdocs/product/liste.php +++ b/htdocs/product/liste.php @@ -203,8 +203,6 @@ if ($resql) $picto='title.png'; if (empty($conf->browser->firefox)) $picto='title.gif'; $smarty->assign('title_picto', img_picto('',$picto)); - if ($_GET["canvas"] != 'default') $texte = $langs->trans('Books'); - $smarty->assign('title_text', $texte); // Check if a custom template is present if (file_exists(DOL_DOCUMENT_ROOT . '/theme/'.$conf->theme.'/templates/product/'.$_GET["canvas"].'/liste.tpl')) diff --git a/htdocs/product/templates/livre/liste.tpl b/htdocs/product/templates/livre/liste.tpl index b0802e04f7f..2f87c89c3e9 100644 --- a/htdocs/product/templates/livre/liste.tpl +++ b/htdocs/product/templates/livre/liste.tpl @@ -26,7 +26,7 @@ {$title_picto} -
{$title_text}
+
{$langs->trans('Books')}
@@ -35,10 +35,10 @@ - - -
Case + {$langs->trans('Case')} Référence + {$langs->trans('Ref')} A-Z @@ -47,7 +47,7 @@ Titre + {$langs->trans('Title')} A-Z