MDL-55074 theme_boost: Undefined variable in perf footer

This commit is contained in:
Damyon Wiese 2016-10-24 10:03:04 +08:00
parent ba5c5083c5
commit 8387614051

View File

@ -8887,9 +8887,10 @@ function get_performance_info() {
$info = array(); $info = array();
$info['txt'] = me() . ' '; // Holds log-friendly representation. $info['txt'] = me() . ' '; // Holds log-friendly representation.
$info['html'] = '';
if (!empty($CFG->themedesignermode)) { if (!empty($CFG->themedesignermode)) {
// Attempt to avoid devs debugging peformance issues, when its caused by css building and so on. // Attempt to avoid devs debugging peformance issues, when its caused by css building and so on.
$info['html'] = '<p><strong>Warning: Theme designer mode is enabled.</strong></p>'; $info['html'] .= '<p><strong>Warning: Theme designer mode is enabled.</strong></p>';
} }
$info['html'] .= '<ul class="list-unstyled m-l-1">'; // Holds userfriendly HTML representation. $info['html'] .= '<ul class="list-unstyled m-l-1">'; // Holds userfriendly HTML representation.