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:
Tim Hunt
2014-10-02 22:03:12 +01:00
parent 04bf7ac857
commit 50b5dde8d1
+11 -11
View File
@@ -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();