Use Event->Path instead of ZM_DIR_EVENTS

This commit is contained in:
Isaac Connor
2016-02-01 13:41:57 -05:00
parent 9543a8a364
commit 4e9e01836f

View File

@@ -45,7 +45,8 @@ if ( isset( $_REQUEST['scale'] ) )
else
$scale = reScale( SCALE_BASE, $event['DefaultScale'], ZM_WEB_DEFAULT_SCALE );
$eventPath = ZM_DIR_EVENTS.'/'.getEventPath( $event );
$Event = new Event( $event['Id'] );
$eventPath = $Event->Path();
$videoFormats = array();
$ffmpegFormats = preg_split( '/\s+/', ZM_FFMPEG_FORMATS );