Merge branch 'MDL-29906' of git://github.com/timhunt/moodle

This commit is contained in:
Sam Hemelryk 2011-10-25 12:25:28 +13:00
commit 6f59dd1a8b

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;