Permalink
Browse files

Merge branch 'MDL-29906_21' of git://github.com/timhunt/moodle into M…

…OODLE_21_STABLE
  • Loading branch information...
2 parents 3a87f67 + e52c522 commit 35e2ec4df5b488ba3575120c2425eaef106c1d1e Sam Hemelryk committed Oct 24, 2011
Showing with 5 additions and 3 deletions.
  1. +5 −3 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 35e2ec4

Please sign in to comment.