initialize the session earlier

This commit is contained in:
Robin Appelman 2013-05-31 17:31:52 +02:00
parent d636e168a6
commit b8b0b7606a
1 changed files with 3 additions and 3 deletions

View File

@ -441,14 +441,14 @@ class OC {
stream_wrapper_register('oc', 'OC\Files\Stream\OC'); stream_wrapper_register('oc', 'OC\Files\Stream\OC');
self::initTemplateEngine(); self::initTemplateEngine();
self::checkConfig();
self::checkInstalled();
self::checkSSL();
if ( !self::$CLI ) { if ( !self::$CLI ) {
self::initSession(); self::initSession();
} else { } else {
self::$session = new \OC\Session\Memory(''); self::$session = new \OC\Session\Memory('');
} }
self::checkConfig();
self::checkInstalled();
self::checkSSL();
$errors = OC_Util::checkServer(); $errors = OC_Util::checkServer();
if (count($errors) > 0) { if (count($errors) > 0) {