Permalink
Browse files

Merge branch 'MDL-38412_23' of git://github.com/timhunt/moodle into M…

…OODLE_23_STABLE
  • Loading branch information...
2 parents e2c7333 + 682b737 commit 7849c443762e6c2a62abdfdfe969d4ef4276f9ed @stronk7 stronk7 committed Mar 19, 2013
@@ -113,12 +113,16 @@ public function __construct($mode, $quiz, $cm, $course) {
* @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 @@ public function display($quiz, $cm, $course) {
$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 @@ public function display($quiz, $cm, $course) {
$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,

0 comments on commit 7849c44

Please sign in to comment.