aboutsummaryrefslogtreecommitdiff
path: root/model/Schedule.php
diff options
context:
space:
mode:
authorMaZderMind2016-12-18 10:37:10 +0100
committerMaZderMind2016-12-18 10:37:10 +0100
commitda739f3b60a30d5dd5c7877742f8b5c292f25f46 (patch)
tree547688e0ef964adb2eb28e1419e62f796f28ddd6 /model/Schedule.php
parent295b97b1cc23c709c6edfa5bfb8bcd4038ff0f65 (diff)
use the new cache-files for viewing
Diffstat (limited to '')
-rw-r--r--model/Schedule.php11
1 files changed, 2 insertions, 9 deletions
diff --git a/model/Schedule.php b/model/Schedule.php
index 6536864..b54709e 100644
--- a/model/Schedule.php
+++ b/model/Schedule.php
@@ -36,17 +36,10 @@ class Schedule
private function fetchSchedule()
{
- $opts = array(
- 'http' => array(
- 'timeout' => 2,
- 'user_agent' => 'C3VOC Universal Streaming-Website Backend @ '.$_SERVER['HTTP_HOST'],
- )
- );
- $context = stream_context_create($opts);
- $schedule = file_get_contents($this->getScheduleUrl(), false, $context);
+ $schedule = file_get_contents($this->getScheduleCache());
if(!$schedule)
- throw new ScheduleException("Error Downloading Schedule from ".$this->getConference()->getScheduleUrl());
+ throw new ScheduleException("Error Loading Schedule from ".$this->getScheduleCache());
return simplexml_load_string($schedule);
}