Commit 302104af authored by Damyon Wiese's avatar Damyon Wiese
Browse files

Merge branch 'MDL-60920-master' of https://github.com/lucaboesch/moodle

parents 80b6f3b0 41d335f3
......@@ -43,20 +43,8 @@ $event->trigger();
// Print the header.
$strquizzes = get_string("modulenameplural", "quiz");
$streditquestions = '';
$editqcontexts = new question_edit_contexts($coursecontext);
if ($editqcontexts->have_one_edit_tab_cap('questions')) {
$streditquestions =
"<form target=\"_parent\" method=\"get\" action=\"$CFG->wwwroot/question/edit.php\">
<div>
<input type=\"hidden\" name=\"courseid\" value=\"$course->id\" />
<input type=\"submit\" value=\"".get_string("editquestions", "quiz")."\" />
</div>
</form>";
}
$PAGE->navbar->add($strquizzes);
$PAGE->set_title($strquizzes);
$PAGE->set_button($streditquestions);
$PAGE->set_heading($course->fullname);
echo $OUTPUT->header();
echo $OUTPUT->heading($strquizzes, 2);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment