aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authordedeibel2017-12-10 18:02:48 +0100
committerdedeibel2017-12-10 18:27:05 +0100
commiteed207f8dfd68117715518c83fc32d3ae9e1e094 (patch)
treea130f34fc994223d6daebb4863024ca34f1dc977 /index.php
parentbe515f5150f20c773371f680efad58f2d0fcaaf0 (diff)
Allowed multi translation for embedding, fixed autoplay option
Diffstat (limited to 'index.php')
-rw-r--r--index.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/index.php b/index.php
index 43a704e..a526b06 100644
--- a/index.php
+++ b/index.php
@@ -315,9 +315,7 @@ try {
require('view/room.php');
}
- // TODO use dynamic i18n parameter
- // TODO change to no-autoplay query parameter?
- else if(preg_match('@^embed/([^/]+)/(hd|sd|audio|slides)/(native|translated|translated2|stereo)(/no-autoplay)?$@', $route, $m))
+ else if(preg_match('@^embed/([^/]+)/(hd|sd|audio|slides)/(native|stereo|[^/]+)(/no-autoplay)?$@', $route, $m))
{
$_GET = array(
'room' => $m[1],