MDL-32322 more changes to make the code more similar before refactoring.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user