diff options
author | Erich Eckner <git@eckner.net> | 2018-07-10 14:16:44 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-07-10 14:16:44 +0200 |
commit | d5cf1bf5a6c0925f9e3815f9b6c33b26a5b67b06 (patch) | |
tree | 15bade50841fcafd9debc34cc998b6778c955ba0 | |
parent | 85bb823dc9f4a4fadec77f7ce51ab202c3c7bf81 (diff) | |
download | archweb32-d5cf1bf5a6c0925f9e3815f9b6c33b26a5b67b06.tar.xz |
lib/format.php: "All" content type
-rw-r--r-- | lib/format.php | 5 |
1 files changed, 5 insertions, 0 deletions
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( |