Merged from MOODLE_15_STABLE: Another fix to the perf printing patch from earlier. I didn't realise that 'no' in the context of perf means 7 ;)

This commit is contained in:
mjollnir_
2005-11-16 02:12:12 +00:00
parent 526cdd63a0
commit 4907efae2b
+2 -2
View File
@@ -1971,12 +1971,12 @@ function print_footer($course=NULL, $usercourse=NULL) {
/// Provide some performance info if required
$performanceinfo = '';
if (defined('MDL_PERF') || $CFG->debug > 7 || !empty($CFG->perfdebug)) {
if (defined('MDL_PERF') || $CFG->debug > 7 || $CFG->perfdebug > 7) {
$perf = get_performance_info();
if (defined('MDL_PERFTOLOG')) {
error_log("PERF: " . $perf['txt']);
}
if (defined('MDL_PERFTOFOOT') || $CFG->debug > 7 || !empty($CFG->perfdebug)) {
if (defined('MDL_PERFTOFOOT') || $CFG->debug > 7 || $CFG->perfdebug > 7) {
$performanceinfo = $perf['html'];
}
}