aboutsummaryrefslogtreecommitdiffstats
path: root/include/page_header.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/page_header.php')
-rw-r--r--include/page_header.php20
1 files changed, 13 insertions, 7 deletions
diff --git a/include/page_header.php b/include/page_header.php
index af28eba0e..6067c65e8 100644
--- a/include/page_header.php
+++ b/include/page_header.php
@@ -30,20 +30,27 @@
//
$template->set_filenames(array('header'=>'header.tpl'));
-$css = './template/'.$user['template'].'/'.$user['template'].'.css';
+$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(
- 'S_CONTENT_ENCODING' => $lang['charset'],
- 'T_STYLE' => $css,
- 'PAGE_TITLE' => $title
- ));
+ 'CONTENT_ENCODING' => $charset,
+ 'PAGE_TITLE' => $title,
+ 'LANG'=>substr($lang_info['current_code'],0,2),
+ 'DIR'=>$dir,
+
+ 'T_STYLE' => $css
+ ));
// refresh
if ( isset( $refresh ) && $refresh >0 && isset($url_link))
{
$url = $url_link.'&slideshow='.$refresh;
$template->assign_vars(array(
- 'S_REFRESH_TIME' => $refresh,
+ 'REFRESH_TIME' => $refresh,
'U_REFRESH' => add_session_id( $url )
));
$template->assign_block_vars('refresh', array());
@@ -64,5 +71,4 @@ header( 'Expires: ' . gmdate('D, d M Y H:i:s', time()) . ' GMT' );
header( 'Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT' );
$template->pparse('header');
-$vtp=new VTemplate;
?>