Permalink
Browse files

MDL-11789 fixed regressions preventing file caching when default used

  • Loading branch information...
1 parent c372f7b commit b29f0b5d598f7753fdce406f69197646ae886649 skodak committed Nov 1, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/filelib.php
View
@@ -650,9 +650,9 @@ function send_file($path, $filename, $lifetime = 'default' , $filter=0, $pathiss
// MDL-11789, apply $CFG->filelifetime here
if ($lifetime === 'default') {
if (!empty($CFG->filelifetime)) {
- $filetime = $CFG->filelifetime;
+ $lifetime = $CFG->filelifetime;
} else {
- $filetime = 86400;
+ $lifetime = 86400;
}
}

0 comments on commit b29f0b5

Please sign in to comment.