mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 14:02:32 +02:00
Merge branch 'MDL-38412' of git://github.com/timhunt/moodle
This commit is contained in:
commit
bf2d2aa983
@ -113,12 +113,16 @@ class mod_quiz_attempts_report_options {
|
||||
* @return array URL parameter name => value.
|
||||
*/
|
||||
protected function get_url_params() {
|
||||
return array(
|
||||
$params = array(
|
||||
'id' => $this->cm->id,
|
||||
'mode' => $this->mode,
|
||||
'attempts' => $this->attempts,
|
||||
'onlygraded' => $this->onlygraded,
|
||||
);
|
||||
if (groups_get_activity_groupmode($this->cm, $this->course)) {
|
||||
$params['group'] = $this->group;
|
||||
}
|
||||
return $params;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -69,7 +69,7 @@ class quiz_overview_report extends quiz_attempts_report {
|
||||
$courseshortname = format_string($course->shortname, true,
|
||||
array('context' => context_course::instance($course->id)));
|
||||
$table = new quiz_overview_table($quiz, $this->context, $this->qmsubselect,
|
||||
$options, $groupstudents, $students, $questions, $this->get_base_url());
|
||||
$options, $groupstudents, $students, $questions, $options->get_url());
|
||||
$filename = quiz_report_download_filename(get_string('overviewfilename', 'quiz_overview'),
|
||||
$courseshortname, $quiz->name);
|
||||
$table->is_downloading($options->download, $filename,
|
||||
|
@ -77,7 +77,7 @@ class quiz_responses_report extends quiz_attempts_report {
|
||||
$courseshortname = format_string($course->shortname, true,
|
||||
array('context' => context_course::instance($course->id)));
|
||||
$table = new quiz_responses_table($quiz, $this->context, $this->qmsubselect,
|
||||
$options, $groupstudents, $students, $questions, $this->get_base_url());
|
||||
$options, $groupstudents, $students, $questions, $options->get_url());
|
||||
$filename = quiz_report_download_filename(get_string('responsesfilename', 'quiz_responses'),
|
||||
$courseshortname, $quiz->name);
|
||||
$table->is_downloading($options->download, $filename,
|
||||
|
Loading…
x
Reference in New Issue
Block a user