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.
This commit is contained in:
Markus Goetz 2013-04-23 11:06:28 +02:00
parent 05ab9d2de7
commit f1a63254fb

View 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) {