Skip to content

Commit

Permalink
removed moodle specific debug messages from file.php
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Sep 21, 2006
1 parent 49a0ba9 commit 2464c59
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion file.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2464c59

Please sign in to comment.