Allow viewing a specific video file instead of DefaultVideo

This commit is contained in:
Isaac Connor
2022-09-06 15:44:41 -04:00
parent 60d01376c5
commit c22007e8ee

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';
}