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

This commit is contained in:
Tim Hunt 2011-10-24 16:19:46 +01:00
parent 3a81b37617
commit 442a3c0b62

View File

@ -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 = '<div class="negcovar">' . $negcovar . '</div>';
$negcovar = html_writer::tag('div',
$negcovar . $OUTPUT->help_icon('negcovar', 'quiz_statistics'),
array('class' => 'negcovar'));
}
return $negcovar;