From f1a63254fbaaf3c82f7f921ca7a9f8e68b122212 Mon Sep 17 00:00:00 2001 From: Markus Goetz Date: Tue, 23 Apr 2013 11:06:28 +0200 Subject: [PATCH] Fix ugly error style on install By initializing the template engine first we can show the 'Can't write into config directory 'config'' error in a nice way instead of plain unstyled HTML. --- lib/base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/base.php b/lib/base.php index 7b0967df9f9..852d3a53a0a 100644 --- a/lib/base.php +++ b/lib/base.php @@ -467,11 +467,11 @@ class OC { stream_wrapper_register('close', 'OC\Files\Stream\Close'); stream_wrapper_register('oc', 'OC\Files\Stream\OC'); + self::initTemplateEngine(); self::checkConfig(); self::checkInstalled(); self::checkSSL(); self::initSession(); - self::initTemplateEngine(); $errors = OC_Util::checkServer(); if (count($errors) > 0) { -- 2.39.5