diff --git a/include/event.php b/include/event.php index f9f3b13204..c24484f8a5 100644 --- a/include/event.php +++ b/include/event.php @@ -1,9 +1,11 @@

' . "\r\n"; - if(strlen($ev['location'])) + if(strlen($ev['location'])){ $o .= '

' . t('Location:') . ' ' . bbcode($ev['location']) . '

' . "\r\n"; + + if (str_pos("[map", $ev['location'])==0) { + $map = generate_named_map($ev['location']); + if ($map!==$ev['location']) $o.=$map; + } + + } $o .= '' . "\r\n"; return $o;