mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
MDL-11789 fixed regressions preventing file caching when default used; merged from MOODLE_19_STABLE
This commit is contained in:
parent
a857b7ea38
commit
0cde3ede1c
@ -973,9 +973,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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user