]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix ugly error style on install
authorMarkus Goetz <markus@woboq.com>
Tue, 23 Apr 2013 09:06:28 +0000 (11:06 +0200)
committerMarkus Goetz <markus@woboq.com>
Tue, 23 Apr 2013 09:06:28 +0000 (11:06 +0200)
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

index 7b0967df9f9ac28f762e4fc70f8ce610c9057491..852d3a53a0afed1a0d5f6096114547f852e1b347 100644 (file)
@@ -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) {