From 9ccf5668e7813b68b8fc2c2b5e398bf2872cf946 Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Mon, 24 Oct 2011 22:16:46 +0100 Subject: [PATCH] MDL-28324 Two minor ouput glitches in the statistics report. Fixes thanks to Jean-Michel Vedrine. --- mod/quiz/report/statistics/report.php | 2 +- mod/quiz/report/statistics/statistics_table.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/quiz/report/statistics/report.php b/mod/quiz/report/statistics/report.php index 7e9acb34281..fe7102e2a34 100644 --- a/mod/quiz/report/statistics/report.php +++ b/mod/quiz/report/statistics/report.php @@ -239,8 +239,8 @@ class quiz_statistics_report extends quiz_default_report { $this->qtable->export_class_instance($this->table->export_class_instance()); $questiontabletitle = !empty($question->number)?'('.$question->number.') ':''; $questiontabletitle .= "\"{$question->name}\""; - $questiontabletitle = "$questiontabletitle"; if ($downloadtype == 'xhtml'){ + $questiontabletitle = "$questiontabletitle"; $questiontabletitle = get_string('analysisofresponsesfor', 'quiz_statistics', $questiontabletitle); } $exportclass =& $this->table->export_class_instance(); diff --git a/mod/quiz/report/statistics/statistics_table.php b/mod/quiz/report/statistics/statistics_table.php index 508da380d42..ba3c6ca46e5 100644 --- a/mod/quiz/report/statistics/statistics_table.php +++ b/mod/quiz/report/statistics/statistics_table.php @@ -139,7 +139,7 @@ class quiz_report_statistics_table extends flexible_table { 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);