Skip to content

Commit

Permalink
Fix #795 - fix order of arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
lochmueller committed Mar 11, 2024
1 parent 1bcb4a8 commit e1cca0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/Controller/CalendarController.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,8 @@ public function pastAction(
}
$this->addCacheTags(['calendarize_past']);

$limit = $limit ?: (int)($this->settings['limit']);
$sort = $sort ?: $this->settings['sorting'];
$limit = (int)$this->settings['limit'] ?: $limit;
$sort = $this->settings['sorting'] ?: $sort;
$this->checkStaticTemplateIsIncluded();
$listStartTime = (string)$this->settings['listStartTime'];
$indices = $this->indexRepository->findByPast($limit, $sort, $listStartTime);
Expand Down

0 comments on commit e1cca0b

Please sign in to comment.