diff options
Diffstat (limited to 'include/page_header.php')
-rw-r--r-- | include/page_header.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/page_header.php b/include/page_header.php index 6a48b4b81..e4833e9c1 100644 --- a/include/page_header.php +++ b/include/page_header.php @@ -28,7 +28,16 @@ // // Start output of page // -$template->set_filenames(array('header'=>'header.tpl')); +if (IN_ADMIN) +{ + $template->set_rootdir(PHPWG_ROOT_PATH.'template/admin/'.$user['template']); + $template->set_filenames(array('header'=>'header.tpl')); +} +else +{ + $template->set_rootdir(PHPWG_ROOT_PATH.'template/public/'.$user['template']); + $template->set_filenames(array('header'=>'header.tpl')); +} $template->assign_vars( array( |