aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/common.inc.php2
-rw-r--r--include/page_header.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/common.inc.php b/include/common.inc.php
index 4fa11cec3..4a0c54a44 100644
--- a/include/common.inc.php
+++ b/include/common.inc.php
@@ -201,7 +201,7 @@ if ($user['is_the_guest'])
list($user['template'], $user['theme']) = explode('/', $user['template']);
// TODO : replace initial $user['template'] by $user['layout']
-if (IN_ADMIN)
+if (defined('IN_ADMIN') && IN_ADMIN)
{
$template_root = 'admin';
}
diff --git a/include/page_header.php b/include/page_header.php
index e4833e9c1..89358697b 100644
--- a/include/page_header.php
+++ b/include/page_header.php
@@ -28,7 +28,7 @@
//
// Start output of page
//
-if (IN_ADMIN)
+if (defined('IN_ADMIN') && IN_ADMIN)
{
$template->set_rootdir(PHPWG_ROOT_PATH.'template/admin/'.$user['template']);
$template->set_filenames(array('header'=>'header.tpl'));