mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 12:45:04 +01:00
quiz with password MDL-23699 starting an attempt was broken.
This commit is contained in:
parent
c99a4ea201
commit
c6764f5a2e
@ -670,8 +670,7 @@ class password_access_rule extends quiz_access_rule_base {
|
||||
/// Start the page and print the quiz intro, if any.
|
||||
echo $OUTPUT->header();
|
||||
if (trim(strip_tags($this->_quiz->intro))) {
|
||||
$cm = get_coursemodule_from_id('quiz', $this->_quiz->id);
|
||||
$output .= $OUTPUT->box(format_module_intro('quiz', $this->_quiz, $cm->id), 'generalbox', 'intro');
|
||||
$output .= $OUTPUT->box(format_module_intro('quiz', $this->_quiz, $this->_quizobj->get_cmid()), 'generalbox', 'intro');
|
||||
}
|
||||
$output .= $OUTPUT->box_start('generalbox', 'passwordbox');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user