aboutsummaryrefslogtreecommitdiff
path: root/model/Upcoming.php
diff options
context:
space:
mode:
authorMaZderMind2015-08-22 09:55:42 +0200
committerMaZderMind2015-08-22 09:55:42 +0200
commit91c7cbeb5e516b3839155135012be9052b468225 (patch)
treebd8634c274f1051de716ff141dd0494ed2e3f4d3 /model/Upcoming.php
parent6842041bca1930c188effdf1b8dc124c1e5d8ca5 (diff)
Use downloaded upcoming.json
Diffstat (limited to 'model/Upcoming.php')
-rw-r--r--model/Upcoming.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/model/Upcoming.php b/model/Upcoming.php
index 1724d0f..d737574 100644
--- a/model/Upcoming.php
+++ b/model/Upcoming.php
@@ -5,14 +5,14 @@ class Upcoming
public function getNextEvents()
{
try {
- $events = file_get_contents('https://c3voc.de/eventkalender/events.json?filter=upcoming');
+ $events = file_get_contents('configs/upcoming.json');
$events = json_decode($events, true);
return array_values($events['voc_events']);
}
catch(ErrorException $e)
{
- return null;
+ return array();
}
}
}