" to '
parent
71a9763c32
commit
7697b8c7be
|
@ -40,12 +40,12 @@ if ( ! empty($_REQUEST['eid'] ) ) {
|
|||
$path = $Event->Path().'/'.$Event->DefaultVideo();
|
||||
Debug("Path: $path");
|
||||
} else {
|
||||
$errorText = "No video path";
|
||||
$errorText = 'No video path';
|
||||
}
|
||||
|
||||
if ( $errorText ) {
|
||||
Error( $errorText );
|
||||
header ('HTTP/1.0 404 Not Found');
|
||||
header('HTTP/1.0 404 Not Found');
|
||||
die();
|
||||
}
|
||||
|
||||
|
@ -53,7 +53,7 @@ $size = filesize($path);
|
|||
|
||||
$fh = @fopen($path,'rb');
|
||||
if ( ! $fh ) {
|
||||
header ("HTTP/1.0 404 Not Found");
|
||||
header('HTTP/1.0 404 Not Found');
|
||||
die();
|
||||
}
|
||||
|
||||
|
@ -86,7 +86,6 @@ if ( $begin > 0 || $end < $size-1 ) {
|
|||
header('HTTP/1.0 200 OK');
|
||||
}
|
||||
|
||||
|
||||
// Apparently without these we get a few extra bytes of output at the end...
|
||||
ob_clean();
|
||||
flush();
|
||||
|
|
Loading…
Reference in New Issue