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
This commit is contained in:
parent
dc6b6ea9be
commit
0076b2a6ca
2 changed files with 16 additions and 1 deletions
|
@ -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(
|
||||
|
|
|
@ -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';
|
||||
|
||||
?>
|
||||
|
|
Loading…
Add table
Reference in a new issue