Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-28324 Two minor ouput glitches in the statistics report.

Fixes thanks to Jean-Michel Vedrine.
  • Loading branch information...
commit 9ccf5668e7813b68b8fc2c2b5e398bf2872cf946 1 parent 22df490
@timhunt timhunt authored
View
2  mod/quiz/report/statistics/report.php
@@ -239,8 +239,8 @@ function output_individual_question_data($quiz, $question, $reporturl, $quizstat
$this->qtable->export_class_instance($this->table->export_class_instance());
$questiontabletitle = !empty($question->number)?'('.$question->number.') ':'';
$questiontabletitle .= "\"{$question->name}\"";
- $questiontabletitle = "<em>$questiontabletitle</em>";
if ($downloadtype == 'xhtml'){
+ $questiontabletitle = "<em>$questiontabletitle</em>";
$questiontabletitle = get_string('analysisofresponsesfor', 'quiz_statistics', $questiontabletitle);
}
$exportclass =& $this->table->export_class_instance();
View
2  mod/quiz/report/statistics/statistics_table.php
@@ -139,7 +139,7 @@ function col_actions($question){
return quiz_question_action_icons($this->quiz, $this->cmid, $question, $editreturnurl);
}
function col_qtype($question){
- return get_string($question->qtype,'quiz');
+ return get_string($question->qtype, 'qtype_' . $question->qtype);
}
function col_intended_weight($question){
return quiz_report_scale_sumgrades_as_percentage($question->_stats->maxgrade, $this->quiz);
Please sign in to comment.
Something went wrong with that request. Please try again.