mirror of
https://github.com/moodle/moodle.git
synced 2025-02-01 05:18:06 +01:00
MDL-32322 more changes to make the code more similar before refactoring.
This commit is contained in:
parent
361cf27d7f
commit
c0270961a8
@ -124,15 +124,7 @@ class quiz_responses_report extends quiz_attempts_report {
|
||||
}
|
||||
|
||||
$hasstudents = $students && (!$currentgroup || $groupstudents);
|
||||
if ($hasquestions && ($hasstudents || $attemptsmode == self::ALL_ATTEMPTS)) {
|
||||
// Print information on the grading method and whether we are displaying.
|
||||
if (!$table->is_downloading()) {
|
||||
// Do not print notices when downloading.
|
||||
if ($strattempthighlight = quiz_report_highlighting_grading_method(
|
||||
$quiz, $this->qmsubselect, $options->onlygraded)) {
|
||||
echo '<div class="quizattemptcounts">' . $strattempthighlight . '</div>';
|
||||
}
|
||||
}
|
||||
if ($hasquestions && ($hasstudents || $options->attempts == self::ALL_ATTEMPTS)) {
|
||||
|
||||
list($fields, $from, $where, $params) = $table->base_sql($allowed);
|
||||
|
||||
@ -140,6 +132,14 @@ class quiz_responses_report extends quiz_attempts_report {
|
||||
|
||||
$table->set_sql($fields, $from, $where, $params);
|
||||
|
||||
if (!$table->is_downloading()) {
|
||||
// Print information on the grading method.
|
||||
if ($strattempthighlight = quiz_report_highlighting_grading_method(
|
||||
$quiz, $this->qmsubselect, $options->onlygraded)) {
|
||||
echo '<div class="quizattemptcounts">' . $strattempthighlight . '</div>';
|
||||
}
|
||||
}
|
||||
|
||||
// Define table columns.
|
||||
$columns = array();
|
||||
$headers = array();
|
||||
|
Loading…
x
Reference in New Issue
Block a user