$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);