aboutsummaryrefslogtreecommitdiff
path: root/view
diff options
context:
space:
mode:
authorBenjamin Peter2017-12-09 23:44:47 +0100
committerdedeibel2017-12-10 18:25:21 +0100
commitbe515f5150f20c773371f680efad58f2d0fcaaf0 (patch)
tree2035fa3a60399686b6c5f6e381124be68c5c667e /view
parent65397e5734b1439df4d68be40ffe994f26e551ec (diff)
Added multple translation tracks with configurable endpoints and labels
Diffstat (limited to 'view')
-rw-r--r--view/room.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/view/room.php b/view/room.php
index d586248..c63f9ec 100644
--- a/view/room.php
+++ b/view/room.php
@@ -1,8 +1,14 @@
<?php
$room = $conference->getRoom($_GET['room']);
-$stream = $room->selectStream(
- $_GET['selection'], $_GET['language']);
+$selection = $_GET['selection'];
+$language = $_GET['language'];
+
+if (! $room->isValidLanguage($language)) {
+ throw new NotFoundException('Language not found');
+}
+
+$stream = $room->selectStream($selection, $language);
echo $tpl->render(array(
'page' => 'room',