From: Nicolas Boisselier Date: Mon, 1 Oct 2018 23:57:18 +0000 (+0100) Subject: www/dbq/dbq.php X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=f1e9962fc0eb0761a4da6ea7bd49587313e3e384;p=nb.git www/dbq/dbq.php --- 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 !