Skip to content

Commit

Permalink
Merge branch 'MDL-61520-33' of git://github.com/lameze/moodle into MO…
Browse files Browse the repository at this point in the history
…ODLE_33_STABLE
  • Loading branch information
junpataleta committed Apr 18, 2018
2 parents 132ea1c + 5155bf1 commit 07f6d89
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion mod/quiz/report/responses/last_responses_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function data_col($slot, $field, $attempt) {
$summary = trim($value);
}

if ($this->is_downloading() && $this->is_downloading() != 'xhtml') {
if ($this->is_downloading() && $this->is_downloading() != 'html') {
return $summary;
}
$summary = s($summary);
Expand Down
10 changes: 5 additions & 5 deletions mod/quiz/report/statistics/report.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public function display($quiz, $cm, $course) {
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);
}

Expand Down Expand Up @@ -403,14 +403,14 @@ protected function output_individual_question_response_analysis($question, $vari
$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);
}
}
Expand Down Expand Up @@ -487,8 +487,8 @@ protected function output_quiz_info_table($quizinfo) {
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;
Expand Down

0 comments on commit 07f6d89

Please sign in to comment.