Skip to content

Commit

Permalink
repair schedule view
Browse files Browse the repository at this point in the history
  • Loading branch information
MaZderMind committed Dec 11, 2016
1 parent 0c3fca5 commit f499d4d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
13 changes: 3 additions & 10 deletions model/Schedule.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,9 @@ private function fetchSchedule()
public function getSchedule()
{
// download schedule-xml
try
{
$schedule = $this->fetchSchedule();
}
catch(Exception $e)
{
return array('_error' => (string)$e);
}
$schedule = $this->fetchSchedule();

$mapping = $this->getConference()->getScheduleToRoomSlugMapping();
$mapping = $this->getScheduleToRoomSlugMapping();
$program = array();

// re-calculate day-ends
Expand Down Expand Up @@ -257,7 +250,7 @@ public function getSchedule()
public function getDurationSum()
{
$sum = 0;
$schedule = $this->getConference()->getSchedule();
$schedule = $this->getSchedule();
foreach(reset($schedule) as $event)
$sum += $event['duration'];

Expand Down
2 changes: 1 addition & 1 deletion template/assemblies/schedule.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
data-end="<?=intval($event['end'])?>"
>
<? $fromstart += $event['duration'] ?>
<? $scheduleRoom = Room::createIfExists($roomname) ?>
<? $scheduleRoom = $conference->getRoomIfExists($roomname) ?>
<? if($scheduleRoom): ?>
<a
class="inner"
Expand Down

0 comments on commit f499d4d

Please sign in to comment.