improve : feature 429, use IN_ADMIN rather than script file name

git-svn-id: http://piwigo.org/svn/branches/branch-1_6@1371 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
chrisaga 2006-06-19 20:04:17 +00:00
parent 0076b2a6ca
commit 946780a467

View file

@ -198,7 +198,7 @@ if ($user['is_the_guest'])
} }
// include template/theme configuration // include template/theme configuration
if (basename($_SERVER['SCRIPT_FILENAME']) == 'admin.php') if (defined('IN_ADMIN') and IN_ADMIN)
{ {
list($user['template'], $user['theme']) = explode('/', $conf['admin_layout']); list($user['template'], $user['theme']) = explode('/', $conf['admin_layout']);
// TODO : replace $conf['admin_layout'] by $user['admin_layout'] // TODO : replace $conf['admin_layout'] by $user['admin_layout']