From eeb811764399b38e2455f7a89f2fd9ad1312b07d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come.bernigaud@opensides.be>
Date: Thu, 9 Jun 2016 06:30:56 +0200
Subject: [PATCH] Fixes #4863 Using configured theme on login page as well

---
 html/index.php | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/html/index.php b/html/index.php
index eab256039..66614ae2a 100644
--- a/html/index.php
+++ b/html/index.php
@@ -159,6 +159,7 @@ if (!is_readable(CONFIG_DIR.'/'.CONFIG_FILE)) {
 
 /* Parse configuration file */
 $config = new config(CONFIG_DIR.'/'.CONFIG_FILE, $BASE_DIR);
+session::global_set('config', $config);
 session::global_set('DEBUGLEVEL', $config->get_cfg_value('DEBUGLEVEL'));
 @DEBUG (DEBUG_CONFIG, __LINE__, __FUNCTION__, __FILE__, $config->data, 'config');
 
@@ -317,9 +318,6 @@ class Index {
     /* User might have its own language, re-run initLanguage */
     initLanguage();
 
-    /* Save config to session. */
-    session::global_set('config', $config);
-
     /* We need a fully loaded plist and config to test account expiration */
     session::global_un_set('plist');
     $plist = load_plist();
-- 
GitLab