aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorchrisaga <chrisaga@piwigo.org>2006-06-19 20:04:17 +0000
committerchrisaga <chrisaga@piwigo.org>2006-06-19 20:04:17 +0000
commit946780a4678dcb0cd825f4c8ca377a715fddebb8 (patch)
treeeb196d2180628f1a9f30e39685695464109fc4b7 /include
parent0076b2a6ca1327e8c8c478d0898b70071a12de83 (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')
-rw-r--r--include/common.inc.php2
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']