Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/mirrors/status.php
diff options
context:
space:
mode:
Diffstat (limited to 'mirrors/status.php')
-rw-r--r--mirrors/status.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/mirrors/status.php b/mirrors/status.php
index 79ca3ee..d9f3274 100644
--- a/mirrors/status.php
+++ b/mirrors/status.php
@@ -2,6 +2,7 @@
require_once "../init.php";
require_once BASE . "/lib/mysql.php";
+require_once BASE . "/lib/format.php";
$cutoff = 86400;
@@ -78,9 +79,4 @@ $content = array(
"urls" => $urls
);
-if (isset($_GET["json"])) {
- header ("Content-type: application/json");
- print json_encode($content,JSON_UNESCAPED_SLASHES);
-} else {
- print "Unknown output format.";
-}
+export_as_requested($content);