Merge pull request from rabuzarus/3001_event_map_fix

event_form: use [map] tag to embedd a map
This commit is contained in:
Tobias Diekershoff 2016-01-30 06:59:30 +01:00
commit 748d0e576c

View file

@ -61,7 +61,7 @@ function format_event_html($ev, $simple = false) {
. bbcode($ev['location']) . bbcode($ev['location'])
. '</span></p>' . "\r\n"; . '</span></p>' . "\r\n";
if (strpos($ev['location'], "[map")===False) { if (strpos($ev['location'], "[map") !== False) {
$map = generate_named_map($ev['location']); $map = generate_named_map($ev['location']);
if ($map!==$ev['location']) $o.=$map; if ($map!==$ev['location']) $o.=$map;
} }