mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
MDL-29906 quiz statistics report: replace use of deprectaed helpbutton.
This commit is contained in:
parent
3a81b37617
commit
442a3c0b62
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user