From 946780a4678dcb0cd825f4c8ca377a715fddebb8 Mon Sep 17 00:00:00 2001 From: chrisaga Date: Mon, 19 Jun 2006 20:04:17 +0000 Subject: 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 --- include/common.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'] -- cgit v1.2.3