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:
+2
-2
@@ -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'];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user