From 036232518a804c7c6ea3f25b050209e30dd12735 Mon Sep 17 00:00:00 2001
From: MaZderMind
Date: Tue, 27 Dec 2016 09:17:46 +0100
Subject: repair relive

---
 model/Relive.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'model')

diff --git a/model/Relive.php b/model/Relive.php
index 542836d..5e7e381 100644
--- a/model/Relive.php
+++ b/model/Relive.php
@@ -91,13 +91,13 @@ class Relive
 
 	private function getScheduleToRoomMapping()
 	{
-		$schedule = new Schedule();
+		$schedule = $this->getConference()->getSchedule();
 		$mapping = array();
 
 		foreach($schedule->getScheduleToRoomSlugMapping() as $schedule => $slug)
 		{
 			try {
-				$mapping[$schedule] = new Room($slug);
+				$mapping[$schedule] = $this->getConference()->getRoom($slug);
 			}
 			catch(NotFoundException $e)
 			{
-- 
cgit v1.2.3