Skip to content

Commit

Permalink
small fix: problem with undefined constant in public zone.
Browse files Browse the repository at this point in the history
git-svn-id: http://piwigo.org/svn/trunk@1366 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
nikrou committed Jun 18, 2006
1 parent 88af014 commit 98b5d37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/common.inc.php
Expand Up @@ -201,7 +201,7 @@
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';
}
Expand Down
2 changes: 1 addition & 1 deletion include/page_header.php
Expand Up @@ -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'));
Expand Down

0 comments on commit 98b5d37

Please sign in to comment.