diff options
author | chrisaga <chrisaga@piwigo.org> | 2006-06-19 20:04:17 +0000 |
---|---|---|
committer | chrisaga <chrisaga@piwigo.org> | 2006-06-19 20:04:17 +0000 |
commit | 946780a4678dcb0cd825f4c8ca377a715fddebb8 (patch) | |
tree | eb196d2180628f1a9f30e39685695464109fc4b7 /include/common.inc.php | |
parent | 0076b2a6ca1327e8c8c478d0898b70071a12de83 (diff) |
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
Diffstat (limited to 'include/common.inc.php')
-rw-r--r-- | include/common.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/common.inc.php b/include/common.inc.php index b584f67c4..2c9364d38 100644 --- a/include/common.inc.php +++ b/include/common.inc.php @@ -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'] |