aboutsummaryrefslogtreecommitdiffstats
path: root/include/common.inc.php
diff options
context:
space:
mode:
authornikrou <nikrou@piwigo.org>2006-06-18 18:39:43 +0000
committernikrou <nikrou@piwigo.org>2006-06-18 18:39:43 +0000
commit98b5d375e4a0725809cd222a573902f0fdae898a (patch)
tree801bdc09feb409ffc148558c1b3cc89696456dbe /include/common.inc.php
parent88af014526f48cc48f3069d0fa48299b0d448be1 (diff)
small fix: problem with undefined constant in public zone.
git-svn-id: http://piwigo.org/svn/trunk@1366 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/common.inc.php')
-rw-r--r--include/common.inc.php2
1 files changed, 1 insertions, 1 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';
}