X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fevent.php;h=bc9467dc80217a1c352277ebaf94ef91c4fe6c3d;hb=369fcb7bae306026d6a1d6f8d0bb9dd565617d51;hp=4795867b129dde88fde5a377f34a7ff000cc113b;hpb=6d3ced63894ebac84851b594e8bf80cc4677f9c5;p=friendica.git diff --git a/include/event.php b/include/event.php index 4795867b12..bc9467dc80 100644 --- a/include/event.php +++ b/include/event.php @@ -9,9 +9,9 @@ use Friendica\Content\Feature; use Friendica\Core\PConfig; use Friendica\Core\System; use Friendica\Database\DBM; +use Friendica\Util\Map; require_once 'include/bbcode.php'; -require_once 'include/map.php'; require_once 'include/datetime.php'; require_once "include/conversation.php"; @@ -75,7 +75,7 @@ function format_event_html($ev, $simple = false) { // Include a map of the location if the [map] BBCode is used. if (strpos($ev['location'], "[map") !== false) { - $map = generate_named_map($ev['location']); + $map = Map::byLocation($ev['location']); if ($map !== $ev['location']) { $o.= $map; } @@ -967,9 +967,9 @@ function format_event_item($item) { } // Construct the map HTML. if (isset($evloc['address'])) { - $location['map'] = '
' . generate_named_map($evloc['address']) . '
'; + $location['map'] = '
' . Map::byLocation($evloc['address']) . '
'; } elseif (isset($evloc['coordinates'])) { - $location['map'] = '
' . generate_map(str_replace('/', ' ', $evloc['coordinates'])) . '
'; + $location['map'] = '
' . Map::byCoordinates(str_replace('/', ' ', $evloc['coordinates'])) . '
'; } // Construct the profile link (magic-auth).