From e23b4a0d5dfa45b84e233dfdcc9af99ecde88b55 Mon Sep 17 00:00:00 2001 From: digital-gnome <31593470+digital-gnome@users.noreply.github.com> Date: Sat, 7 Oct 2017 11:56:15 -0400 Subject: [PATCH] Fix event path --- web/ajax/status.php | 4 ++-- web/includes/functions.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/ajax/status.php b/web/ajax/status.php index ab5d61050..ed185d918 100644 --- a/web/ajax/status.php +++ b/web/ajax/status.php @@ -390,8 +390,8 @@ function getNearEvents() { $result['NextEventId'] = empty($nextEvent)?0:$nextEvent['Id']; $result['PrevEventStartTime'] = empty($prevEvent)?0:$prevEvent['StartTime']; $result['NextEventStartTime'] = empty($nextEvent)?0:$nextEvent['StartTime']; - $result['PrevEventDefVideoPath'] = empty($prevEvent)?0:(getEventDefaultVideoPath($prevEvent)); - $result['NextEventDefVideoPath'] = empty($nextEvent)?0:(getEventDefaultVideoPath($nextEvent)); + $result['PrevEventDefVideoPath'] = empty($prevEvent)?0:(getEventDefaultVideoPath($prevEvent['Id'])); + $result['NextEventDefVideoPath'] = empty($nextEvent)?0:(getEventDefaultVideoPath($nextEvent['Id'])); return( $result ); } diff --git a/web/includes/functions.php b/web/includes/functions.php index 6b8ee47dc..aa3f3124d 100644 --- a/web/includes/functions.php +++ b/web/includes/functions.php @@ -471,7 +471,7 @@ function getEventPath( $event ) { function getEventDefaultVideoPath( $event ) { $Event = new Event( $event ); - return $Event->getStreamSrc( array( "mode=mpeg&format=h264" ) ); + return $Event->getStreamSrc( array( "mode"=>"mpeg", "format"=>"h264" ) ); //$Event->Path().'/'.$event['DefaultVideo']; }