From f1e9962fc0eb0761a4da6ea7bd49587313e3e384 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Tue, 2 Oct 2018 00:57:18 +0100 Subject: [PATCH] www/dbq/dbq.php --- www/dbq/dbq.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www/dbq/dbq.php b/www/dbq/dbq.php index 28d27263..4f3835c6 100644 --- a/www/dbq/dbq.php +++ b/www/dbq/dbq.php @@ -637,8 +637,10 @@ class DbQ extends nb { } public function format($set=null) { + #$this->db->format = $this->params['format']; if ($set === null) return $this->params['format']; $this->db->format = $this->params['format'] = $set; + #debug($this->db->format); } public function table($param=[]) { @@ -983,7 +985,7 @@ EOF; public function run_init() { $this->db(); - if (!empty($this->formats)) $this->db->formats = $this->formats; + if (!empty($this->formats)) $this->db->formats = $this->ar_map('str_replace(".html","",$a)',$this->formats); if (!empty($this->limits)) $this->db->limits = $this->limits; // Format first ! -- 2.47.3