Skip to content

Commit

Permalink
MDL-29906 quiz statistics report: replace use of deprectaed helpbutton.
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt committed Oct 24, 2011
1 parent e04dba0 commit e52c522
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions mod/quiz/report/statistics/statistics_table.php
Expand Up @@ -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 '';
}
Expand All @@ -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;
Expand Down

0 comments on commit e52c522

Please sign in to comment.