Skip to content

Commit

Permalink
MDL-42125 quiz stats: fix regression caused by MDL-51603
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt committed Sep 1, 2016
1 parent 9e5e0d8 commit 6ae04c2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions mod/quiz/report/statistics/report.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public function display($quiz, $cm, $course) {
// On-screen display of overview report.
echo $OUTPUT->heading(get_string('quizinformation', 'quiz_statistics'), 3);
echo $this->output_caching_info($quizstats->timemodified, $quiz->id, $groupstudents, $whichattempts, $reporturl);
echo $this->everything_download_options();
echo $this->everything_download_options($reporturl);
$quizinfo = $quizstats->get_formatted_quiz_info_data($course, $cm, $quiz);
echo $this->output_quiz_info_table($quizinfo);
if ($quizstats->s()) {
Expand Down Expand Up @@ -735,13 +735,14 @@ protected function analyse_responses_for_questions($questions, $qubaids, $whicht
* Return a little form for the user to request to download the full report, including quiz stats and response analysis for
* all questions and sub-questions.
*
* @param moodle_url $reporturl the base URL of the report.
*
* @return string HTML.
*/
protected function everything_download_options() {
protected function everything_download_options(moodle_url $reporturl) {
global $OUTPUT;

return $OUTPUT->download_dataformat_selector(get_string('downloadeverything', 'quiz_statistics'),
$this->table->baseurl->out_omit_querystring(), 'download', $this->table->baseurl->params() + array('everything' => 1));
$reporturl->out_omit_querystring(), 'download', $reporturl->params() + array('everything' => 1));
}

/**
Expand Down

0 comments on commit 6ae04c2

Please sign in to comment.