Use directly $lang_info on tpl files.

git-svn-id: http://piwigo.org/svn/trunk@2651 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rub 2008-10-04 09:50:02 +00:00
parent 7569462895
commit 1d7f99d90f
5 changed files with 3 additions and 7 deletions

View file

@ -7,7 +7,7 @@
*}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="{$LANG}" dir="{$DIR}">
<html lang="{$lang_info.code}" dir="{$lang_info.direction}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={$CONTENT_ENCODING}">
<meta name="generator" content="Piwigo (aka PWG), see piwigo.org">

View file

@ -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' =>

View file

@ -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(),
));

View file

@ -1,7 +1,7 @@
{* $Id$ *}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="{$LANG}" dir="{$DIR}">
<html lang="{$lang_info.code}" dir="{$lang_info.direction}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={$CONTENT_ENCODING}">
<meta name="generator" content="Piwigo (aka PWG), see piwigo.org">

View file

@ -4,7 +4,7 @@ Content-Type: {$CONTENT_TYPE}; charset="{$CONTENT_ENCODING}";
Content-Transfer-Encoding: 8bit
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="{$LANG}" dir="{$DIR}">
<html lang="{$lang_info.code}" dir="{$lang_info.direction}">
<head>
<title>Piwigo Mail</title>
<meta http-equiv="Content-Type" content="text/html; charset={$CONTENT_ENCODING}">