From a1afc2e34f4652d791b78e7f541712301cd48c9d Mon Sep 17 00:00:00 2001
From: Bernhard Posselt <nukeawhale@gmail.com>
Date: Wed, 27 Feb 2013 11:36:05 +0100
Subject: [PATCH] only add style.css to initsession

---
 lib/base.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/base.php b/lib/base.php
index 8654f9906f..b46a97af64 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -326,6 +326,7 @@ class OC {
 				OC_Log::ERROR);
 			
 			header('HTTP/1.1 500 Internal Server Error');
+			OC_Util::addStyle("styles");
 			$error = 'Session could not be initialized. Please contact your ';
 			$error .= 'system administrator';
 
@@ -459,8 +460,8 @@ class OC {
 		self::checkConfig();
 		self::checkInstalled();
 		self::checkSSL();
-		self::initTemplateEngine();
 		self::initSession();
+		self::initTemplateEngine();
 
 		$errors = OC_Util::checkServer();
 		if (count($errors) > 0) {
-- 
GitLab