Commit 1390c414 authored by Vincent Petry's avatar Vincent Petry Committed by GitHub
Browse files

Merge pull request #26512 from IljaN/master

Fixing white screen of death on non existing apps dir path (#25945)
parents fc5dbbbd 371dd45d
......@@ -514,7 +514,9 @@ class OC {
self::initPaths();
} catch (\RuntimeException $e) {
if (!self::$CLI) {
OC_Response::setStatus(OC_Response::STATUS_SERVICE_UNAVAILABLE);
// can`t use OC_Response::setStatus because server is not
// initialized here
http_response_code(OC_Response::STATUS_SERVICE_UNAVAILABLE);
}
// we can't use the template error page here, because this needs the
// DI container which isn't available yet
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment