mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-05 00:13:05 +02:00
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:
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user