aboutsummaryrefslogtreecommitdiffstats
path: root/include/common.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/common.inc.php')
-rw-r--r--include/common.inc.php16
1 files changed, 15 insertions, 1 deletions
diff --git a/include/common.inc.php b/include/common.inc.php
index 1ab44143f..db94ed740 100644
--- a/include/common.inc.php
+++ b/include/common.inc.php
@@ -171,7 +171,21 @@ if ($user['is_the_guest'])
}
// template instance
-$template = new Template(PHPWG_ROOT_PATH.'template/'.$user['template'], $user['theme'] );
+if
+ (
+ defined('IN_ADMIN') and IN_ADMIN and
+ isset($user['admin_template']) and
+ isset($user['admin_theme'])
+ )
+{
+ // Admin template
+ $template = new Template(PHPWG_ROOT_PATH.'template/'.$user['admin_template'], $user['admin_theme'] );
+}
+else
+{
+ // Classic template
+ $template = new Template(PHPWG_ROOT_PATH.'template/'.$user['template'], $user['theme'] );
+}
if ($conf['gallery_locked'])
{