Skip to content

Commit

Permalink
Add relevant data object to extend calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Martijn committed Jan 2, 2017
1 parent 7517313 commit ce6c231
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/pages/YearCalendarPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ protected function itemIcal($id)
$filter = URLSegmentFilter::create();
$title = $filter->filter($agenda->First()->Title);

$this->extend('updateItemIcalTitle', $title);
$this->extend('updateItemIcalTitle', $title, $agenda->First());

return $this->generateIcal($agenda, $title);
}
Expand Down Expand Up @@ -355,7 +355,7 @@ protected function pageIcal()
$filter = URLSegmentFilter::create();
$title = $filter->filter($this->data()->Title);

$this->extend('updatePageIcalTitle', $title);
$this->extend('updatePageIcalTitle', $title, $this->data());

return $this->generateIcal($agenda, $title);
}
Expand Down

0 comments on commit ce6c231

Please sign in to comment.