diff --git a/modules/boonex/events/classes/BxEventsDb.php b/modules/boonex/events/classes/BxEventsDb.php index 1e706deb3c..e82791a5da 100644 --- a/modules/boonex/events/classes/BxEventsDb.php +++ b/modules/boonex/events/classes/BxEventsDb.php @@ -174,6 +174,7 @@ public function getEntriesByDate($sDateFrom, $sDateTo, $iEventId = 0, $aSQLPart $a[$k]['url'] = bx_absolute_url(BxDolPermalinks::getInstance()->permalink('page.php?i=' . $this->_oConfig->CNF['URI_VIEW_ENTRY'] . '&id=' . $r['id'])); if(bx_is_api()) { $a[$k]['url'] = bx_api_get_relative_url($a[$k]['url']); + $a[$k]['location_data'] = $oMetatags->locationGet($r['id']); $a[$k]['location'] = $oMetatags->locationsString($r['id'], false); } else { diff --git a/modules/boonex/events/classes/BxEventsModule.php b/modules/boonex/events/classes/BxEventsModule.php index fc567819f2..f855b0224e 100644 --- a/modules/boonex/events/classes/BxEventsModule.php +++ b/modules/boonex/events/classes/BxEventsModule.php @@ -114,8 +114,8 @@ public function serviceCalendarData($aParams = []) $oPrivacy = BxDolPrivacy::getObjectInstance($CNF['OBJECT_PRIVACY_VIEW']); $iNow = time(); - $sStart = !empty($aParams['start']) ? $aParams['start'] : date('d.m.Y', $iNow); - $sEnd = !empty($aParams['end']) ? $aParams['end'] : date('d.m.Y', $iNow + 3600 * 24 * 365); + $sStart = !empty($aParams['start']) ? date('d.m.Y', $aParams['start']) : date('d.m.Y', $iNow); + $sEnd = !empty($aParams['end']) ? date('d.m.Y', $aParams['end']) : date('d.m.Y', $iNow + 3600 * 24 * 365); $iContentId = 0; $iContextId = 0;