diff options
author | gweltas <gweltas@piwigo.org> | 2004-03-27 13:24:26 +0000 |
---|---|---|
committer | gweltas <gweltas@piwigo.org> | 2004-03-27 13:24:26 +0000 |
commit | 6a9c9eb91f349123850ddda0de18dde87f0565bb (patch) | |
tree | 28c5304252304a1197fb5a404c93f07b3fda6183 /include/page_header.php | |
parent | a2fe0444de049196fe203883fb426aa18e6a4b35 (diff) |
- Split of infos.lang.php
git-svn-id: http://piwigo.org/svn/trunk@398 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | include/page_header.php | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/include/page_header.php b/include/page_header.php index 6067c65e8..08572804d 100644 --- a/include/page_header.php +++ b/include/page_header.php @@ -30,17 +30,12 @@ // $template->set_filenames(array('header'=>'header.tpl')); -$charset = empty($lang_info['charset'][$lang_info['current_code']])? - $lang_info['default']['charset']:$lang_info['charset'][$lang_info['current_code']]; -$dir = empty($lang_info['direction'][$lang_info['current_code']])? - $lang_info['default']['direction']:$lang_info['direction'][$lang_info['current_code']]; - $css = PHPWG_ROOT_PATH.'template/'.$user['template'].'/'.$user['template'].'.css'; $template->assign_vars(array( - 'CONTENT_ENCODING' => $charset, + 'CONTENT_ENCODING' => $lang_info['charset'], 'PAGE_TITLE' => $title, - 'LANG'=>substr($lang_info['current_code'],0,2), - 'DIR'=>$dir, + 'LANG'=>$lang_info['code'], + 'DIR'=>$lang_info['direction'], 'T_STYLE' => $css )); |