diff options
author | Andreas Hubel | 2020-01-01 12:25:48 +0100 |
---|---|---|
committer | Andreas Hubel | 2020-01-01 12:28:29 +0100 |
commit | e630426b5fb3ccb4ecf68b919e592577f0402f5c (patch) | |
tree | 1a03b814d4f17e0cca08cb5b8e72b2cc776c897c /view/relive-player.php | |
parent | 1893591c124166e4bef423ce96f043ca1234e498 (diff) |
relive player: improve handling of released talks
Diffstat (limited to '')
-rw-r--r-- | view/relive-player.php | 6 |
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'], |