]> git.mjollnir.org Git - moodle.git/commitdiff
Isolating debug and perfdebug behaviours...now
authorstronk7 <stronk7>
Mon, 1 May 2006 23:16:48 +0000 (23:16 +0000)
committerstronk7 <stronk7>
Mon, 1 May 2006 23:16:48 +0000 (23:16 +0000)
each one controls its own output.

lib/weblib.php

index 7bd5d8adda6844a8a5e6c45374c51492a8eb7826..efb1141b2518bcc6d66368ac41dc8815ad0c64d0 100644 (file)
@@ -2156,7 +2156,7 @@ function print_footer($course=NULL, $usercourse=NULL) {
 
 /// Provide some performance info if required
     $performanceinfo = '';
-    if (defined('MDL_PERF') || $CFG->debug > 7 || $CFG->perfdebug > 7) {
+    if (defined('MDL_PERF') || $CFG->perfdebug > 7) {
         $perf = get_performance_info();
         if (defined('MDL_PERFTOLOG')) {
             error_log("PERF: " . $perf['txt']);