From 72395e60cb691524af954cfeb7242531336d566b Mon Sep 17 00:00:00 2001 From: tjhunt Date: Tue, 8 Jul 2008 17:43:34 +0000 Subject: [PATCH] MDL-15541 - Refactor starting a new attempt into a new file startattempt.php - slight improvement to the code. --- mod/quiz/startattempt.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/quiz/startattempt.php b/mod/quiz/startattempt.php index 1e104716ab..7c9f9e25e9 100644 --- a/mod/quiz/startattempt.php +++ b/mod/quiz/startattempt.php @@ -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()); -- 2.39.5