From 8a2605578a8d99140d5e01b2a88e3f62566ac61a Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 1 Apr 2016 15:43:40 -0400 Subject: [PATCH] fix type in htmlSelect --- web/includes/functions.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/includes/functions.php b/web/includes/functions.php index ada28dc0b..c942e69ac 100644 --- a/web/includes/functions.php +++ b/web/includes/functions.php @@ -514,7 +514,7 @@ function getEventPath( $event ) function getEventDefaultVideoPath( $event ) { $Event = new Event( $event ); - return $Event->getStreamSrc( array( "mode=mpeg" ) ); + return $Event->getStreamSrc( array( "mode=mpeg&format=h264" ) ); //$Event->Path().'/'.$event['DefaultVideo']; } @@ -599,7 +599,7 @@ function truncText( $text, $length, $deslash=1 ) return( preg_replace( "/^(.{".$length.",}?)\b.*$/", "\\1…", ($deslash?stripslashes($text):$text) ) ); } -function htmlSelect( $name, $contents, $values, $behaviors=false ) { +function htmlSelect( $name, $contents, $values, $behaviours=false ) { $behaviourText = ""; if ( !empty($behaviours) ) { @@ -611,6 +611,7 @@ function htmlSelect( $name, $contents, $values, $behaviors=false ) { $behaviourText = ' onchange="'.$behaviours.'"'; } } + $html = "