MDL-61520 quiz: fix references for xhtml on stats report
authorSimey Lameze <simey@moodle.com>
Tue, 10 Apr 2018 04:17:54 +0000 (12:17 +0800)
committerSimey Lameze <simey@moodle.com>
Wed, 11 Apr 2018 02:46:13 +0000 (10:46 +0800)
mod/quiz/report/responses/last_responses_table.php
mod/quiz/report/statistics/report.php

index 009c17e..8ce209b 100644 (file)
@@ -90,7 +90,7 @@ class quiz_last_responses_table extends quiz_attempts_report_table {
             $summary = trim($value);
         }
 
-        if ($this->is_downloading() && $this->is_downloading() != 'xhtml') {
+        if ($this->is_downloading() && $this->is_downloading() != 'html') {
             return $summary;
         }
         $summary = s($summary);
index 84cfe27..5c8838e 100644 (file)
@@ -190,7 +190,7 @@ class quiz_statistics_report extends quiz_default_report {
             if ($quizstats->s()) {
                 $this->output_quiz_structure_analysis_table($questionstats);
 
-                if ($this->table->is_downloading() == 'xhtml' && $quizstats->s() != 0) {
+                if ($this->table->is_downloading() == 'html' && $quizstats->s() != 0) {
                     $this->output_statistics_graph($quiz->id, $qubaids);
                 }
 
@@ -403,14 +403,14 @@ class quiz_statistics_report extends quiz_default_report {
                 $questiontabletitle = get_string('analysisnameonly', 'quiz_statistics', $a);
             }
 
-            if ($this->table->is_downloading() == 'xhtml') {
+            if ($this->table->is_downloading() == 'html') {
                 $questiontabletitle = get_string('analysisofresponsesfor', 'quiz_statistics', $questiontabletitle);
             }
 
             // Set up the table.
             $exportclass->start_table($questiontabletitle);
 
-            if ($this->table->is_downloading() == 'xhtml') {
+            if ($this->table->is_downloading() == 'html') {
                 echo $this->render_question_text($question);
             }
         }
@@ -487,8 +487,8 @@ class quiz_statistics_report extends quiz_default_report {
     protected function download_quiz_info_table($quizinfo) {
         global $OUTPUT;
 
-        // XHTML download is a special case.
-        if ($this->table->is_downloading() == 'xhtml') {
+        // HTML download is a special case.
+        if ($this->table->is_downloading() == 'html') {
             echo $OUTPUT->heading(get_string('quizinformation', 'quiz_statistics'), 3);
             echo $this->output_quiz_info_table($quizinfo);
             return;