summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-06-03 19:23:30 +0200
committerMorris Jobke <hey@morrisjobke.de>2014-06-03 19:23:30 +0200
commit3a1994d00149bea6d554c96a3bdee3126cfb17b8 (patch)
tree1c8dbecdad2bcb23cf399743b09b6db50dffda0b
parent6764d5b122fbdf105dc34c2fa3ccb7cf3eae3c6e (diff)
parent3e14affa9b3a5c44108e43fef15ce9b9970640d9 (diff)
downloadnextcloud-server-3a1994d00149bea6d554c96a3bdee3126cfb17b8.tar.gz
nextcloud-server-3a1994d00149bea6d554c96a3bdee3126cfb17b8.zip
Merge pull request #8686 from owncloud/session-early
Make the session available as early as possible
-rw-r--r--lib/base.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php
index 5f2131f388f..f7cfca90614 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -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);