diff options
Diffstat (limited to '')
-rw-r--r-- | include/common.inc.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/common.inc.php b/include/common.inc.php index 8aeafb7bf..4fa11cec3 100644 --- a/include/common.inc.php +++ b/include/common.inc.php @@ -201,9 +201,17 @@ if ($user['is_the_guest']) list($user['template'], $user['theme']) = explode('/', $user['template']); // TODO : replace initial $user['template'] by $user['layout'] +if (IN_ADMIN) +{ + $template_root = 'admin'; +} +else +{ + $template_root = 'public'; +} include( PHPWG_ROOT_PATH - .'template/'.$user['template'] + .'template/'.$template_root.'/'.$user['template'] .'/theme/'.$user['theme'] .'/themeconf.inc.php' ); |