aboutsummaryrefslogtreecommitdiffstats
path: root/include/system_unavailable.php
diff options
context:
space:
mode:
authorken restivo <ken@restivo.org>2015-11-20 18:56:41 -0800
committerken restivo <ken@restivo.org>2015-11-20 18:56:41 -0800
commitfabf7081d39481bb22ee27c4beaf96e5529168eb (patch)
treedd67cc9c75049f58911bd8c13f33d362c31e9f71 /include/system_unavailable.php
parentd11e80e1b3135ad8396c625057f5db4475148c7c (diff)
downloadvolse-hubzilla-fabf7081d39481bb22ee27c4beaf96e5529168eb.tar.gz
volse-hubzilla-fabf7081d39481bb22ee27c4beaf96e5529168eb.tar.bz2
volse-hubzilla-fabf7081d39481bb22ee27c4beaf96e5529168eb.zip
Use http_status() instead of homegrowing it. Adapt http_status to handle replies with data.
Diffstat (limited to 'include/system_unavailable.php')
-rw-r--r--include/system_unavailable.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/system_unavailable.php b/include/system_unavailable.php
index 00a73fc38..4e0e6717b 100644
--- a/include/system_unavailable.php
+++ b/include/system_unavailable.php
@@ -1,7 +1,9 @@
<?php /** @file */
+require_once("include/network.php");
+
function system_down() {
-header('HTTP/1.0 503 Service Unavailable');
+http_status(503, 'Service Unavailable');
echo <<< EOT
<html>
<head><title>System Unavailable</title></head>