diff options
author | Markus Goetz <markus@woboq.com> | 2013-04-23 11:06:28 +0200 |
---|---|---|
committer | Markus Goetz <markus@woboq.com> | 2013-04-23 11:06:28 +0200 |
commit | f1a63254fbaaf3c82f7f921ca7a9f8e68b122212 (patch) | |
tree | 507b95af15e7d613be93d4bc2d3defcf04c3fb1f /lib/base.php | |
parent | 05ab9d2de7f2c5181eda2174a2e2adb1cc214196 (diff) | |
download | nextcloud-server-f1a63254fbaaf3c82f7f921ca7a9f8e68b122212.tar.gz nextcloud-server-f1a63254fbaaf3c82f7f921ca7a9f8e68b122212.zip |
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.
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |