]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-15541 - Refactor starting a new attempt into a new file startattempt.php - slight...
authortjhunt <tjhunt>
Tue, 8 Jul 2008 17:43:34 +0000 (17:43 +0000)
committertjhunt <tjhunt>
Tue, 8 Jul 2008 17:43:34 +0000 (17:43 +0000)
mod/quiz/startattempt.php

index 1e104716ab1a63673d5919f2857cd735ef73e087..7c9f9e25e95dcdc41535e7607bf121b51df8d069 100644 (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());