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