From d5cf1bf5a6c0925f9e3815f9b6c33b26a5b67b06 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 10 Jul 2018 14:16:44 +0200 Subject: lib/format.php: "All" content type --- lib/format.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib') diff --git a/lib/format.php b/lib/format.php index 1440b64..00e8296 100644 --- a/lib/format.php +++ b/lib/format.php @@ -8,6 +8,11 @@ require_once "../init.php"; include_once BASE . "/lib/http.php"; function export_as_requested($content) { + if (isset($content["All"])) { + $content["json"]=$content["All"]; + $content["tsv"]=$content["All"]; + unset($content["All"]); + } if (isset($content["json"]) && isset($_GET["json"])) { header ("Content-type: application/json"); print json_encode( -- cgit v1.2.3-70-g09d2