mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 04:22:07 +02:00
removed moodle specific debug messages from file.php
This commit is contained in:
parent
49a0ba9438
commit
2464c592e3
7
file.php
7
file.php
@ -13,7 +13,12 @@
|
||||
$lifetime = 86400; // Seconds for files to remain in caches
|
||||
} else {
|
||||
$lifetime = $CFG->filelifetime;
|
||||
}
|
||||
}
|
||||
|
||||
// remove moodle specific debug messages by switching the sign bit in error level bitmask
|
||||
if ($CFG->debug > 0) {
|
||||
$CFG->debug = $CFG->debug | 0x80000000;
|
||||
}
|
||||
|
||||
$relativepath = get_file_argument('file.php');
|
||||
$forcedownload = optional_param('forcedownload', 0, PARAM_BOOL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user