diff --git a/lib/helper.php b/lib/helper.php index 50d381dc..d23eb35f 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -153,6 +153,19 @@ function room_has_slides($room) return count(array_intersect(array('slides'), $formats)) > 0; } +function room_get_possible_selections($room) +{ + $selections = array(); + + if(room_has_hd($room)) $selections[] = 'hd'; + if(room_has_sd($room)) $selections[] = 'sd'; + if(room_has_audio($room)) $selections[] = 'audio'; + if(room_has_music($room)) $selections[] = 'music'; + if(room_has_slides($room)) $selections[] = 'slides'; + + return $selections; +} + function room_has_rtmp($room) { $formats = get("ROOMS.$room.FORMATS"); diff --git a/template/assemblies/feedback.phtml b/template/assemblies/feedback.phtml index 6979bfcb..80df984b 100644 --- a/template/assemblies/feedback.phtml +++ b/template/assemblies/feedback.phtml @@ -52,17 +52,14 @@