Print notice on preview when secure window will be used for students
This commit is contained in:
@@ -370,13 +370,16 @@
|
||||
|
||||
/// Print the attempt number or preview heading
|
||||
if ($isteacher) {
|
||||
print_heading(get_string('previewquiz', 'quiz'));
|
||||
print_heading(get_string('previewquiz', 'quiz', format_string($quiz->name)));}
|
||||
unset($buttonoptions);
|
||||
$buttonoptions['q'] = $quiz->id;
|
||||
$buttonoptions['forcenew'] = true;
|
||||
echo '<center>';
|
||||
print_single_button($CFG->wwwroot.'/mod/quiz/attempt.php', $buttonoptions, get_string('startagain', 'quiz'));
|
||||
echo '</center>';
|
||||
if ($quiz->popup) {
|
||||
notify(get_string('popupnotice', 'quiz'));
|
||||
|
||||
} else {
|
||||
print_heading($strattemptnum);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user