From 1d7f99d90fcefacfe53025a8cbcacb29224a906c Mon Sep 17 00:00:00 2001 From: rub Date: Sat, 4 Oct 2008 09:50:02 +0000 Subject: [PATCH] Use directly $lang_info on tpl files. git-svn-id: http://piwigo.org/svn/trunk@2651 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/template/goto/header.tpl | 2 +- include/functions_mail.inc.php | 2 -- include/page_header.php | 2 -- template/yoga/header.tpl | 2 +- template/yoga/mail/text/html/header.tpl | 2 +- 5 files changed, 3 insertions(+), 7 deletions(-) diff --git a/admin/template/goto/header.tpl b/admin/template/goto/header.tpl index 04e445004..4e57c754f 100644 --- a/admin/template/goto/header.tpl +++ b/admin/template/goto/header.tpl @@ -7,7 +7,7 @@ *} - + diff --git a/include/functions_mail.inc.php b/include/functions_mail.inc.php index 63175c2e0..c6a8e337f 100644 --- a/include/functions_mail.inc.php +++ b/include/functions_mail.inc.php @@ -652,8 +652,6 @@ function pwg_mail($to, $args = array()) 'BOUNDARY_KEY' => $conf_mail['boundary_key'], 'CONTENT_TYPE' => $args['email_format'], 'CONTENT_ENCODING' => get_pwg_charset(), - 'LANG' => $lang_info['code'], - 'DIR' => $lang_info['direction'], // Footer 'GALLERY_URL' => diff --git a/include/page_header.php b/include/page_header.php index 629b45db3..2fa509e86 100644 --- a/include/page_header.php +++ b/include/page_header.php @@ -45,8 +45,6 @@ $template->assign( 'CONTENT_ENCODING' => get_pwg_charset(), 'PAGE_TITLE' => strip_tags($title), - 'LANG'=>$lang_info['code'], - 'DIR'=>$lang_info['direction'], 'U_HOME' => make_index_url(), )); diff --git a/template/yoga/header.tpl b/template/yoga/header.tpl index f76919ca7..b0495c104 100644 --- a/template/yoga/header.tpl +++ b/template/yoga/header.tpl @@ -1,7 +1,7 @@ {* $Id$ *} - + diff --git a/template/yoga/mail/text/html/header.tpl b/template/yoga/mail/text/html/header.tpl index 2aeb2b434..20e3dab83 100644 --- a/template/yoga/mail/text/html/header.tpl +++ b/template/yoga/mail/text/html/header.tpl @@ -4,7 +4,7 @@ Content-Type: {$CONTENT_TYPE}; charset="{$CONTENT_ENCODING}"; Content-Transfer-Encoding: 8bit - + Piwigo Mail