From 5daf0089ce69ac4df97f51da5573826f1140608f Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Thu, 17 Nov 2016 12:15:40 +0000 Subject: [PATCH] db/index.php --- etc/dbq/ui.php | 1 + lib/php/db/index.php | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/etc/dbq/ui.php b/etc/dbq/ui.php index 6f1f2c72..9ed51562 100644 --- a/etc/dbq/ui.php +++ b/etc/dbq/ui.php @@ -1,5 +1,6 @@ mime2ext($Db->content_type())) { + case "html": + $Db->pdef('format','table'); + break; + case "txt": + $Db->pdef('format','human'); + break; + default: + #bye($type); + $Db->pdef('format','csv'); +} return $Db->action($Db->p('action'),$Table); ?> -- 2.47.3