From 2464c592e3bc0f19ff13b7410cedbe320a5aeaee Mon Sep 17 00:00:00 2001 From: skodak Date: Thu, 21 Sep 2006 06:38:27 +0000 Subject: [PATCH] removed moodle specific debug messages from file.php --- file.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/file.php b/file.php index 3448ee0d834..2984ab08578 100644 --- a/file.php +++ b/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);