diff options
author | chrisaga <chrisaga@piwigo.org> | 2006-06-19 19:28:20 +0000 |
---|---|---|
committer | chrisaga <chrisaga@piwigo.org> | 2006-06-19 19:28:20 +0000 |
commit | 0076b2a6ca1327e8c8c478d0898b70071a12de83 (patch) | |
tree | 638a86d1e73c4ea79732ac8e5b3c804197501e95 /include | |
parent | dc6b6ea9be5bb7242b41f1b9608b93fda0896604 (diff) |
improve : feature 429 admin layout is fixed sitewise in config_default.inc.php
git-svn-id: http://piwigo.org/svn/branches/branch-1_6@1370 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include')
-rw-r--r-- | include/common.inc.php | 10 | ||||
-rw-r--r-- | include/config_default.inc.php | 7 |
2 files changed, 16 insertions, 1 deletions
diff --git a/include/common.inc.php b/include/common.inc.php index 8aeafb7bf..b584f67c4 100644 --- a/include/common.inc.php +++ b/include/common.inc.php @@ -198,7 +198,15 @@ if ($user['is_the_guest']) } // include template/theme configuration -list($user['template'], $user['theme']) = explode('/', $user['template']); +if (basename($_SERVER['SCRIPT_FILENAME']) == 'admin.php') +{ + list($user['template'], $user['theme']) = explode('/', $conf['admin_layout']); +// TODO : replace $conf['admin_layout'] by $user['admin_layout'] +} +else +{ + list($user['template'], $user['theme']) = explode('/', $user['template']); +} // TODO : replace initial $user['template'] by $user['layout'] include( diff --git a/include/config_default.inc.php b/include/config_default.inc.php index ec432f210..1b0b7b6bb 100644 --- a/include/config_default.inc.php +++ b/include/config_default.inc.php @@ -480,4 +480,11 @@ $conf['nbm_list_all_enabled_users_to_send'] = false; // Max mails sended on one pass $conf['nbm_max_treatment_timeout_percent'] = 0.8; +// +-----------------------------------------------------------------------+ +// | Set default admin layout | +// +-----------------------------------------------------------------------+ + +// Must be user setable in future +$conf['admin_layout']='yoga/dark'; + ?> |