From: tjhunt Date: Tue, 8 Jul 2008 17:43:34 +0000 (+0000) Subject: MDL-15541 - Refactor starting a new attempt into a new file startattempt.php - slight... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=72395e60cb691524af954cfeb7242531336d566b;p=moodle.git MDL-15541 - Refactor starting a new attempt into a new file startattempt.php - slight improvement to the code. --- 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());