mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
#11202 Fixed url icon
This commit is contained in:
parent
a3c7bdb655
commit
be0f77b782
@ -3173,7 +3173,12 @@ function visual_map_get_image_status_element($layoutData, $status=false)
|
|||||||
|
|
||||||
if ($layoutData['type'] == 5) {
|
if ($layoutData['type'] == 5) {
|
||||||
// ICON ELEMENT.
|
// ICON ELEMENT.
|
||||||
$img .= '.png';
|
$url = parse_url($layoutData['image']);
|
||||||
|
if (isset($url['scheme']) === false) {
|
||||||
|
$img .= '.png';
|
||||||
|
} else {
|
||||||
|
$img = $layoutData['image'];
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if ($status === false) {
|
if ($status === false) {
|
||||||
$status = visual_map_get_status_element($layoutData);
|
$status = visual_map_get_status_element($layoutData);
|
||||||
|
@ -116,7 +116,12 @@ final class Icon extends Item
|
|||||||
|
|
||||||
// Get the img src.
|
// Get the img src.
|
||||||
$imagePath = \visual_map_get_image_status_element($data);
|
$imagePath = \visual_map_get_image_status_element($data);
|
||||||
$data['imageSrc'] = \ui_get_full_url($imagePath, false, false, false);
|
$url = parse_url($imagePath);
|
||||||
|
if (isset($url['scheme']) === false) {
|
||||||
|
$data['imageSrc'] = \ui_get_full_url($imagePath, false, false, false);
|
||||||
|
} else {
|
||||||
|
$data['imageSrc'] = $imagePath;
|
||||||
|
}
|
||||||
|
|
||||||
// If the width or the height are equal to 0 we will extract them
|
// If the width or the height are equal to 0 we will extract them
|
||||||
// from the real image size.
|
// from the real image size.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user