aboutsummaryrefslogtreecommitdiff
path: root/model/Relive.php
diff options
context:
space:
mode:
authorMaZderMind2016-12-27 11:26:07 +0100
committerMaZderMind2016-12-27 11:26:07 +0100
commite58f1920693b400de24a527c4d31f3ccd9ea1f3e (patch)
tree19bcee03460ffb71e955a782e44c24a33919da7c /model/Relive.php
parentf5b3525b17aab83ed2e8b826a854dea9ffd75773 (diff)
repair relive urls
Diffstat (limited to 'model/Relive.php')
-rw-r--r--model/Relive.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/model/Relive.php b/model/Relive.php
index 6b8b309..3da7c90 100644
--- a/model/Relive.php
+++ b/model/Relive.php
@@ -62,10 +62,16 @@ class Relive
if($talk['status'] == 'not_running')
continue;
- if($talk['status'] == 'released')
+ if($talk['status'] == 'released') {
$talk['url'] = $talk['release_url'];
- else
- $talk['url'] = 'relive/'.rawurlencode($talk['id']).'/';
+ }
+ else {
+ $talk['url'] = joinpath([
+ $this->getConference()->getSlug(),
+ 'relive',
+ rawurlencode($talk['id']),
+ ]);
+ }
if(isset($mapping[$talk['room']]))
{