Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d911c72
)
MDL-26294 fix byteserving regression
author
Petr Skoda
<commits@skodak.org>
Sat, 12 Feb 2011 19:39:53 +0000
(20:39 +0100)
committer
Petr Skoda
<commits@skodak.org>
Sat, 12 Feb 2011 19:39:53 +0000
(20:39 +0100)
Credit goes to James Mitchell.
lib/filelib.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/filelib.php
b/lib/filelib.php
index
adaaedc
..
6d73be9
100644
(file)
--- a/
lib/filelib.php
+++ b/
lib/filelib.php
@@
-1704,7
+1704,7
@@
function send_file($path, $filename, $lifetime = 'default' , $filter=0, $pathiss
$ranges = false;
}
if ($ranges) {
- $handle = fopen($
filename
, 'rb');
+ $handle = fopen($
path
, 'rb');
byteserving_send_file($handle, $mimetype, $ranges, $filesize);
}
}