Print notice on preview when secure window will be used for students

This commit is contained in:
gustav_delius
2005-06-04 11:16:37 +00:00
parent e0b0ef395f
commit 775d4dd817
+4 -1
View File
@@ -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);
}