aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/common.inc.php10
-rw-r--r--include/config_default.inc.php7
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';
+
?>