mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
This commit is contained in:
@@ -51,8 +51,6 @@ class Config {
|
||||
}
|
||||
App::$config[$family]['config_loaded'] = true;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
4
boot.php
4
boot.php
@@ -681,8 +681,8 @@ function sys_boot() {
|
||||
* Load configs from db. Overwrite configs from .htconfig.php
|
||||
*/
|
||||
|
||||
load_config('system');
|
||||
load_config('feature');
|
||||
Config::Load('system');
|
||||
Config::Load('feature');
|
||||
|
||||
App::$session = new Zotlabs\Web\Session();
|
||||
App::$session->init();
|
||||
|
||||
@@ -3,7 +3,10 @@
|
||||
require_once("include/network.php");
|
||||
|
||||
function system_down() {
|
||||
http_status(503, 'Service Unavailable');
|
||||
// Set $skiplog to true here. Otherwise we will run into a loop
|
||||
// when system_unavailable() -> system_down() is called from Zotlabs\Lib\Config::Load()
|
||||
// but the DB is not available.
|
||||
http_status(503, 'Service Unavailable', true);
|
||||
echo <<< EOT
|
||||
<html>
|
||||
<head><title>System Unavailable</title></head>
|
||||
@@ -12,4 +15,4 @@ Apologies but this site is unavailable at the moment. Please try again later.
|
||||
</body>
|
||||
</html>
|
||||
EOT;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user