diff options
author | Peter Körner | 2016-03-22 14:49:31 +0100 |
---|---|---|
committer | Peter Körner | 2016-03-22 14:49:31 +0100 |
commit | 75b924ea39de4b8ecaca0335fdf433d08e01e16e (patch) | |
tree | 15891b5765cea4ffe6e6239d68ffc1e66d7364ad | |
parent | 6156d666f556e50fad01dc576c1218415e198399 (diff) |
update parsing to new naming-scheme in wiki
-rw-r--r-- | configs/conferences/chaosradio/config.php | 4 | ||||
-rw-r--r-- | configs/conferences/datengarten/config.php | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/configs/conferences/chaosradio/config.php b/configs/conferences/chaosradio/config.php index c1e76e0..f17054f 100644 --- a/configs/conferences/chaosradio/config.php +++ b/configs/conferences/chaosradio/config.php @@ -3,7 +3,7 @@ $upcoming = new Upcoming(); $upcoming_events = $upcoming->getNextEvents(); $upcoming_crs = array_values(array_filter($upcoming_events, function($event) { - return preg_match('/^cr[0-9]+$/i', $event['short_name']); + return preg_match('/^events:cr[0-9]+$/i', $event['short_name']); })); if(count($upcoming_crs) < 1) @@ -16,7 +16,7 @@ if(count($upcoming_crs) < 1) else { $upcoming_cr = $upcoming_crs[0]; - preg_match('/^cr([0-9]+)$/i', $upcoming_cr['short_name'], $m); + preg_match('/^events:cr([0-9]+)$/i', $upcoming_cr['short_name'], $m); $EPISODE = intval($m[1]); $DATE = strtotime($upcoming_cr['start_date'].' 22:00'); diff --git a/configs/conferences/datengarten/config.php b/configs/conferences/datengarten/config.php index 13d9a94..f04a666 100644 --- a/configs/conferences/datengarten/config.php +++ b/configs/conferences/datengarten/config.php @@ -3,7 +3,7 @@ $upcoming = new Upcoming(); $upcoming_events = $upcoming->getNextEvents(); $upcoming_dgs = array_values(array_filter($upcoming_events, function($event) { - return preg_match('/^dg[0-9]+$/i', $event['short_name']); + return preg_match('/^events:dg[0-9]+$/i', $event['short_name']); })); if(count($upcoming_dgs) < 1) { @@ -14,7 +14,7 @@ if(count($upcoming_dgs) < 1) else { $upcoming_dg = $upcoming_dgs[0]; - preg_match('/^dg([0-9]+)$/i', $upcoming_dg['short_name'], $m); + preg_match('/^events:dg([0-9]+)$/i', $upcoming_dg['short_name'], $m); $EPISODE = intval($m[1]); $DATE = strtotime($upcoming_dg['start_date'].' 20:00'); |