Allow viewing a specific video file instead of DefaultVideo

pull/3588/head
Isaac Connor 2022-09-06 15:44:41 -04:00
parent 60d01376c5
commit c22007e8ee
1 changed files with 5 additions and 1 deletions

View File

@ -44,7 +44,11 @@ if ( ! empty($_REQUEST['eid']) ) {
$path = $Event->Path().'/'.$Event->DefaultVideo();
} else if ( ! empty($_REQUEST['event_id']) ) {
$Event = new ZM\Event($_REQUEST['event_id']);
$path = $Event->Path().'/'.$Event->DefaultVideo();
if (!empty($_REQUEST['file'])) {
$path = $Event->Path().'/'.preg_replace('/\//', '', $_REQUEST['file']);
} else {
$path = $Event->Path().'/'.$Event->DefaultVideo();
}
} else {
$errorText = 'No video path';
}