MDL-28075 question editing: tidy code
Remove an unnecessary else (the if, and else if, always end in a redirect) and unindent that code.
This commit is contained in:
+11
-11
@@ -313,15 +313,15 @@ if ($mform->is_cancelled()) {
|
||||
redirect($nexturl);
|
||||
}
|
||||
|
||||
} else {
|
||||
$streditingquestion = $qtypeobj->get_heading();
|
||||
$PAGE->set_title($streditingquestion);
|
||||
$PAGE->set_heading($COURSE->fullname);
|
||||
$PAGE->navbar->add($streditingquestion);
|
||||
|
||||
// Display a heading, question editing form and possibly some extra content needed for
|
||||
// for this question type.
|
||||
echo $OUTPUT->header();
|
||||
$qtypeobj->display_question_editing_page($mform, $question, $wizardnow);
|
||||
echo $OUTPUT->footer();
|
||||
}
|
||||
|
||||
$streditingquestion = $qtypeobj->get_heading();
|
||||
$PAGE->set_title($streditingquestion);
|
||||
$PAGE->set_heading($COURSE->fullname);
|
||||
$PAGE->navbar->add($streditingquestion);
|
||||
|
||||
// Display a heading, question editing form and possibly some extra content needed for
|
||||
// for this question type.
|
||||
echo $OUTPUT->header();
|
||||
$qtypeobj->display_question_editing_page($mform, $question, $wizardnow);
|
||||
echo $OUTPUT->footer();
|
||||
|
||||
Reference in New Issue
Block a user