aboutsummaryrefslogtreecommitdiff
path: root/view/relive-player.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--view/relive-player.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/view/relive-player.php b/view/relive-player.php
index 6be5616..6afc8d9 100644
--- a/view/relive-player.php
+++ b/view/relive-player.php
@@ -6,6 +6,12 @@ if(!$relive->isEnabled())
$talk = $relive->getTalk(intval($_GET['id']));
+if($talk['status'] == 'released' && empty($_GET['redirect'])) {
+ header("HTTP/1.1 301 Moved Permanently");
+ header('Location: ' . $talk['release_url']);
+ return;
+}
+
echo $tpl->render(array(
'page' => 'relive-player',
'title' => 'Relive: ' . $talk['title'],