From 07a5914dc448b6f210ffe99b341d1d35b04bf11f 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 b58ffb4dfbb..07abe631605 100644 --- a/lib/base.php +++ b/lib/base.php @@ -460,11 +460,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