From 56f007d5df54b607dbf2b72f22e89a0edbbacef1 Mon Sep 17 00:00:00 2001 From: rldhont Date: Mon, 11 Sep 2023 22:40:25 +0200 Subject: [PATCH] WMSRequest::getMapData returns array --- lizmap/modules/lizmap/lib/Request/WMSRequest.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lizmap/modules/lizmap/lib/Request/WMSRequest.php b/lizmap/modules/lizmap/lib/Request/WMSRequest.php index 32a5b3e005..6c78a94f0b 100644 --- a/lizmap/modules/lizmap/lib/Request/WMSRequest.php +++ b/lizmap/modules/lizmap/lib/Request/WMSRequest.php @@ -1060,7 +1060,14 @@ protected function getMapData($project, $params, $forced = false) \jMessage::add('The SRS parameter is missing.', 'MissingParameterValue'); } - return $this->serviceException(); + $except = $this->serviceException(); + + return array( + $except->data, + $except->mime, + $except->code, + $except->cached, + ); } $crs = preg_replace('#[^a-zA-Z0-9_]#', '_', $crs);