MDL-15541 - Refactor starting a new attempt into a new file startattempt.php - slight improvement to the code.

This commit is contained in:
tjhunt
2008-07-08 17:43:34 +00:00
parent 78e7a3dd5d
commit 72395e60cb
+1 -1
View File
@@ -45,7 +45,7 @@ if ($quizobj->is_preview_user() && $forcenew) {
// This page should only respond to post requests, if not, redirect to the view page.
// However, becuase 'secure' mode opens in a new window, we cannot do enforce this rule for them.
if (!data_submitted() && !$accessmanager->securewindow_required($quizobj->is_preview_user())) {
redirect($quizobj->view_url());
$accessmanager->back_to_view_page($quizobj->is_preview_user());
}
if (!confirm_sesskey()) {
throw new moodle_exception('confirmsesskeybad', 'error', $quizobj->view_url());