Skip to content

Commit

Permalink
WMSRequest::getMapData returns array
Browse files Browse the repository at this point in the history
  • Loading branch information
rldhont committed Sep 11, 2023
1 parent 363e1f3 commit 56f007d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lizmap/modules/lizmap/lib/Request/WMSRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 56f007d

Please sign in to comment.