From e085c3636b3ffff73efcb8aa18ac2aa8f82c65e1 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Sat, 17 Dec 2022 20:39:02 +0100 Subject: [PATCH] replace ar_map with array_map --- www/dbq/dbq.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/www/dbq/dbq.php b/www/dbq/dbq.php index eb6c9a36..c5df11a4 100644 --- a/www/dbq/dbq.php +++ b/www/dbq/dbq.php @@ -1009,7 +1009,13 @@ EOF; public function run_init() { $this->db(); - if (!empty($this->formats)) $this->db->formats = $this->ar_map('str_replace(".html","",$a)',$this->formats); + # NB 17.12.22 if (!empty($this->formats)) $this->db->formats = $this->ar_map('str_replace(".html","",$a)',$this->formats); + if (!empty($this->formats)) $this->db->formats = + array_map( + function($a){return str_replace(".html","",$a);} + ,$this->formats + ) + ; if (!empty($this->limits)) $this->db->limits = $this->limits; // Format first ! -- 2.47.3