Skip to content

Commit

Permalink
Merge branch 'MDL-29906_21' of git://github.com/timhunt/moodle into M…
Browse files Browse the repository at this point in the history
…OODLE_21_STABLE
  • Loading branch information
Sam Hemelryk committed Oct 24, 2011
2 parents 3a87f67 + e52c522 commit 35e2ec4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions mod/quiz/report/statistics/statistics_table.php
Original file line number Diff line number Diff line change
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 35e2ec4

Please sign in to comment.