removed moodle specific debug messages from file.php

This commit is contained in:
skodak 2006-09-21 06:38:27 +00:00
parent 49a0ba9438
commit 2464c592e3

View File

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