Browse files

MDL-29906 quiz statistics report: replace use of deprectaed helpbutton.

  • Loading branch information...
1 parent e04dba0 commit e52c5225ec0b7d2e93536d6508bb12d67f84a796 @timhunt timhunt committed Oct 24, 2011
Showing with 5 additions and 3 deletions.
  1. +5 −3 mod/quiz/report/statistics/statistics_table.php
View
8 mod/quiz/report/statistics/statistics_table.php
@@ -275,6 +275,8 @@ protected function col_intended_weight($question) {
* @return string contents of this table cell.
*/
protected function col_effective_weight($question) {
+ global $OUTPUT;
+
if ($question->_stats->subquestion) {
return '';
}
@@ -283,9 +285,9 @@ protected function col_effective_weight($question) {
$negcovar = get_string('negcovar', 'quiz_statistics');
if (!$this->is_downloading()) {
- $negcovar .= helpbutton('negcovar', $negcovar, 'quiz_statistics',
- true, false, '', true);
- $negcovar = '<div class="negcovar">' . $negcovar . '</div>';
+ $negcovar = html_writer::tag('div',
+ $negcovar . $OUTPUT->help_icon('negcovar', 'quiz_statistics'),
+ array('class' => 'negcovar'));
}
return $negcovar;

0 comments on commit e52c522

Please sign in to comment.