diff options
author | Mario <mario@mariovavti.com> | 2024-01-01 20:04:44 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-01-01 20:04:44 +0000 |
commit | ceb510bbf5e8eaa93fd6231c5c5e134fb1883c29 (patch) | |
tree | 13b6fac2c817cc4d02a2bb8f85cba136e7471891 /include | |
parent | 2590e3c99be36f806fe25dd6db0504e853669fde (diff) | |
parent | f2f9cfaf28508f66c1e948e7d1a9bf6b0c637d9d (diff) | |
download | volse-hubzilla-ceb510bbf5e8eaa93fd6231c5c5e134fb1883c29.tar.gz volse-hubzilla-ceb510bbf5e8eaa93fd6231c5c5e134fb1883c29.tar.bz2 volse-hubzilla-ceb510bbf5e8eaa93fd6231c5c5e134fb1883c29.zip |
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
Diffstat (limited to 'include')
-rw-r--r-- | include/system_unavailable.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/system_unavailable.php b/include/system_unavailable.php index 4e0e6717b..e927bc633 100644 --- a/include/system_unavailable.php +++ b/include/system_unavailable.php @@ -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; -}
\ No newline at end of file +} |