]> git.mjollnir.org Git - moodle.git/commitdiff
Students can view their payments.
authorethem <ethem>
Mon, 13 Mar 2006 17:57:12 +0000 (17:57 +0000)
committerethem <ethem>
Mon, 13 Mar 2006 17:57:12 +0000 (17:57 +0000)
enrol/authorize/enrol.php
lang/en_utf8/enrol_authorize.php

index 83de1334476d201217324ecce568153e1f78020e..67b3bd7d07337210e4d049ced72c47b5cce7178b 100755 (executable)
@@ -545,6 +545,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');
             return;
         }
index 7cfd4bf05a4de9f62c231ca10b537039f986bab1..cbbf4d7e25187bf5548af3e7240154dfad7d59ff 100644 (file)
@@ -104,7 +104,7 @@ $string['noreturns'] = 'No returns!';
 $string['notsettled'] = 'Not settled';
 $string['orderid'] = 'Order ID';
 $string['paymentmanagement'] = 'Payment Management';
-$string['paymentpending'] = 'Your payment is pending for this course with this order number $a->orderid.';
+$string['paymentpending'] = 'Your payment is pending for this course with this order number $a->orderid.  See <a href=\'$a->url\'>Order Details</a>.';
 $string['pendingordersemail'] = ' Dear admin,
 
 $a->pending transactions will be expired unless you accept payment with in $a->days days.