mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 08:22:07 +02:00
Merge branch 'MDL-60920-master' of https://github.com/lucaboesch/moodle
This commit is contained in:
commit
302104af4b
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user