Skip to content

Commit

Permalink
#4558 - Build-in API support (events)
Browse files Browse the repository at this point in the history
  • Loading branch information
romanlesnikov committed Nov 28, 2023
1 parent 1081103 commit b4a41b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions modules/boonex/events/classes/BxEventsDb.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions modules/boonex/events/classes/BxEventsModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b4a41b5

Please sign in to comment.