]> git.mjollnir.org Git - moodle.git/commitdiff
removed moodle specific debug messages from file.php
authorskodak <skodak>
Thu, 21 Sep 2006 06:38:27 +0000 (06:38 +0000)
committerskodak <skodak>
Thu, 21 Sep 2006 06:38:27 +0000 (06:38 +0000)
file.php

index 3448ee0d834171ca7946484e02cefa8f286b124b..2984ab08578ceee72cbb36122914db0a87704eae 100644 (file)
--- a/file.php
+++ b/file.php
         $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);