aboutsummaryrefslogtreecommitdiff
path: root/view/relive-player.php
diff options
context:
space:
mode:
authorMaZderMind2015-03-31 23:17:01 +0200
committerMaZderMind2015-03-31 23:17:01 +0200
commit024d632396def58c335944cae24371a10a3306b9 (patch)
tree579b4cdf2b4bb00a4329e186e19d2b2f9b1e519d /view/relive-player.php
parent5b3788456f9e5b290eb2148af50b3f0a981a8923 (diff)
Implement Relive based on the MVT Pattern
Diffstat (limited to '')
-rw-r--r--view/relive-player.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/view/relive-player.php b/view/relive-player.php
index bc8bb57..587286b 100644
--- a/view/relive-player.php
+++ b/view/relive-player.php
@@ -1,10 +1,10 @@
<?php
-$talks_by_id = relive_talks();
-$talk = @$talks_by_id[intval($_GET['id'])];
+$relive = new Relive();
+if(!$relive->isEnabled())
+ throw new NotFoundException('Internal Relive is disabled');
-if(!$talk)
- return require('page/404.php');
+$talk = $relive->getTalk(intval($_GET['id']));
echo $tpl->render(array(
'page' => 'relive-player',