]> git.mjollnir.org Git - moodle.git/commitdiff
Fix: Redirect to order details page 10 seconds later, not home page. Merged from...
authorethem <ethem>
Sat, 13 May 2006 16:18:38 +0000 (16:18 +0000)
committerethem <ethem>
Sat, 13 May 2006 16:18:38 +0000 (16:18 +0000)
enrol/authorize/enrol.php

index 9041b95690953e4b73027e949b4cd2cccc6ea75b..312c9e264b1d965576bbff4c72bd764ce7e8b523 100755 (executable)
@@ -588,7 +588,7 @@ class enrolment_plugin_authorize
         if ($rec=get_record('enrol_authorize','userid',$USER->id,'courseid',$course->id,'status',$status,'id')) {
             $a->orderid = $rec->id;
             $a->url = "$CFG->wwwroot/enrol/authorize/index.php?order=$a->orderid";
-            redirect($CFG->wwwroot, get_string("paymentpending", "enrol_authorize", $a), '20');
+            redirect($a->url, get_string("paymentpending", "enrol_authorize", $a), '10');
             return;
         }
         if (isset($SESSION->ccpaid)) {