small fix: problem with undefined constant in public zone.

git-svn-id: http://piwigo.org/svn/trunk@1366 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
nikrou
2006-06-18 18:39:43 +00:00
parent 88af014526
commit 98b5d375e4
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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';
}
+1 -1
View File
@@ -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'));