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:
parent
0076b2a6ca
commit
946780a467
1 changed files with 1 additions and 1 deletions
|
@ -198,7 +198,7 @@ if ($user['is_the_guest'])
|
|||
}
|
||||
|
||||
// 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']);
|
||||
// TODO : replace $conf['admin_layout'] by $user['admin_layout']
|
||||
|
|
Loading…
Add table
Reference in a new issue