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..b584f67c4 100644 --- a/include/common.inc.php +++ b/include/common.inc.php @@ -198,7 +198,15 @@ if ($user['is_the_guest']) } // include template/theme configuration -list($user['template'], $user['theme']) = explode('/', $user['template']); +if (basename($_SERVER['SCRIPT_FILENAME']) == 'admin.php') +{ + list($user['template'], $user['theme']) = explode('/', $conf['admin_layout']); +// TODO : replace $conf['admin_layout'] by $user['admin_layout'] +} +else +{ + list($user['template'], $user['theme']) = explode('/', $user['template']); +} // TODO : replace initial $user['template'] by $user['layout'] include( |