]> source.dussan.org Git - nextcloud-server.git/commitdiff
Throw exception because the logger causes session issues anyway that early in the... 1881/head
authorMorris Jobke <hey@morrisjobke.de>
Mon, 24 Oct 2016 13:03:18 +0000 (15:03 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Mon, 24 Oct 2016 19:14:44 +0000 (21:14 +0200)
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
lib/base.php

index bcb81662c0ea0aee44d34da2f34f23b2aac904be..883c1f54b174b87fcb39d186e16df6c7fdbd9cc2 100644 (file)
@@ -626,7 +626,7 @@ class OC {
                @ini_set('log_errors', 1);
 
                if(!date_default_timezone_set('UTC')) {
-                       \OC::$server->getLogger()->error('Could not set timezone to UTC');
+                       throw new \RuntimeException('Could not set timezone to UTC');
                };
 
                //try to configure php to enable big file uploads.