mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
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:
@@ -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';
|
||||
}
|
||||
|
||||
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user