diff options
author | dedeibel | 2018-05-12 14:53:16 +0200 |
---|---|---|
committer | dedeibel | 2018-05-12 14:53:16 +0200 |
commit | ce811ee001a7f8f4e30148d73cccdd33edf942de (patch) | |
tree | 7d72c83eae338ba42299117670bd99d188d2ec28 /template | |
parent | d9773337f1d450a7f3ffef04e931290aa441641f (diff) |
Add current stream selection to schedule link if present. Meaning: Stay in the current stream type when switching rooms.
Diffstat (limited to '')
-rw-r--r-- | template/assemblies/schedule.phtml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/template/assemblies/schedule.phtml b/template/assemblies/schedule.phtml index 62eb077..461353c 100644 --- a/template/assemblies/schedule.phtml +++ b/template/assemblies/schedule.phtml @@ -17,7 +17,11 @@ <? if($scheduleRoom): ?> <a class="inner" - href="<?=h($scheduleRoom->createTabObject()->getLink($roomname))?>" + <? if (isset($stream)): ?> + href="<?=h($scheduleRoom->createTabObject($stream->getSelection())->getLink($roomname))?>" + <? else: ?> + href="<?=h($scheduleRoom->createTabObject()->getLink($roomname))?>" + <? endif ?> title="Switch to <?=h($scheduleRoom->getDisplay())?>" > <? else: ?> |