Merge pull request #8686 from owncloud/session-early

Make the session available as early as possible
This commit is contained in:
Morris Jobke 2014-06-03 19:23:30 +02:00
commit 3a1994d001

View file

@ -434,6 +434,9 @@ class OC {
self::$loader->registerPrefix('Pimple', '3rdparty/Pimple');
spl_autoload_register(array(self::$loader, 'load'));
// make a dummy session available as early as possible since error pages need it
self::$session = new \OC\Session\Memory('');
// set some stuff
//ob_start();
error_reporting(E_ALL | E_STRICT);