aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/common.inc.php10
-rw-r--r--include/functions.inc.php4
-rw-r--r--include/page_header.php11
3 files changed, 4 insertions, 21 deletions
diff --git a/include/common.inc.php b/include/common.inc.php
index 4a0c54a44..8aeafb7bf 100644
--- a/include/common.inc.php
+++ b/include/common.inc.php
@@ -201,17 +201,9 @@ if ($user['is_the_guest'])
list($user['template'], $user['theme']) = explode('/', $user['template']);
// TODO : replace initial $user['template'] by $user['layout']
-if (defined('IN_ADMIN') && IN_ADMIN)
-{
- $template_root = 'admin';
-}
-else
-{
- $template_root = 'public';
-}
include(
PHPWG_ROOT_PATH
- .'template/'.$template_root.'/'.$user['template']
+ .'template/'.$user['template']
.'/theme/'.$user['theme']
.'/themeconf.inc.php'
);
diff --git a/include/functions.inc.php b/include/functions.inc.php
index 30df3ed4b..89bf29c0f 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -597,11 +597,11 @@ function url_is_remote($url)
/**
* returns available template/theme
*/
-function get_pwg_themes($template_root = 'public')
+function get_pwg_themes()
{
$themes = array();
- $template_dir = PHPWG_ROOT_PATH.'template'.'/'.$template_root;
+ $template_dir = PHPWG_ROOT_PATH.'template';
foreach (get_dirs($template_dir) as $template)
{
diff --git a/include/page_header.php b/include/page_header.php
index 89358697b..6a48b4b81 100644
--- a/include/page_header.php
+++ b/include/page_header.php
@@ -28,16 +28,7 @@
//
// Start output of page
//
-if (defined('IN_ADMIN') && 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->set_filenames(array('header'=>'header.tpl'));
$template->assign_vars(
array(