]> 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)
committerVictor Dubiniuk <victor.dubiniuk@gmail.com>
Tue, 25 Jun 2013 13:27:07 +0000 (16:27 +0300)
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 b58ffb4dfbb6c8af73ba300511e48f346bc69fa1..07abe631605676a9d0083660475a955add379930 100644 (file)
@@ -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) {