From e52c5225ec0b7d2e93536d6508bb12d67f84a796 Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Mon, 24 Oct 2011 16:19:46 +0100 Subject: [PATCH] MDL-29906 quiz statistics report: replace use of deprectaed helpbutton. --- mod/quiz/report/statistics/statistics_table.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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;