diff --git a/mod/quiz/report/statistics/statistics_table.php b/mod/quiz/report/statistics/statistics_table.php index ac14ceb8136..566da5a7118 100644 --- a/mod/quiz/report/statistics/statistics_table.php +++ b/mod/quiz/report/statistics/statistics_table.php @@ -275,6 +275,8 @@ class quiz_report_statistics_table extends flexible_table { * @return string contents of this table cell. */ protected function col_effective_weight($question) { + global $OUTPUT; + if ($question->_stats->subquestion) { return ''; } @@ -283,9 +285,9 @@ class quiz_report_statistics_table extends flexible_table { $negcovar = get_string('negcovar', 'quiz_statistics'); if (!$this->is_downloading()) { - $negcovar .= helpbutton('negcovar', $negcovar, 'quiz_statistics', - true, false, '', true); - $negcovar = '
' . $negcovar . '
'; + $negcovar = html_writer::tag('div', + $negcovar . $OUTPUT->help_icon('negcovar', 'quiz_statistics'), + array('class' => 'negcovar')); } return $negcovar;