]> git.mjollnir.org Git - moodle.git/commitdiff
String 'returns'&'noreturns' added to authorize strings array. (get string fast)
authorethem <ethem>
Mon, 24 Apr 2006 16:54:59 +0000 (16:54 +0000)
committerethem <ethem>
Mon, 24 Apr 2006 16:54:59 +0000 (16:54 +0000)
enrol/authorize/index.php
enrol/authorize/locallib.php

index 857182d1c7184f316ceb4a1a5c8481586b5ed029..436bce02923b3605b347b326134701b2452ec6a4 100644 (file)
@@ -20,7 +20,7 @@
     $authstrs = get_strings(array('paymentmanagement','orderid','void','capture','refund','delete',
                 'authcaptured','authorizedpendingcapture','capturedpendingsettle','capturedsettled',
                 'settled','refunded','cancelled','expired','tested',
-                'transid','settlementdate','notsettled','amount',
+                'transid','settlementdate','notsettled','amount','returns','noreturns',
                 'howmuch','captureyes','unenrolstudent'), 'enrol_authorize');
 
 /// Print header
index a596125cf80473194ff464b7ace0fc2b52165410..7e792947d5f7b1e272c46fdcff9c880391de81f7 100644 (file)
@@ -425,7 +425,7 @@ function authorize_print_order_details($orderno)
         $table->data[] = array("<b>$strs->action</b>", $actions);
         print_table($table);
         if ($settled) { // show refunds.
-            echo "<h4>" . get_string('returns', 'enrol_authorize') . "</h4>\n";
+            echo "<h4>" . $authstrs->returns . "</h4>\n";
             $t2->size = array('15%', '15%', '20%', '35%', '15%');
             $t2->align = array('right', 'right', 'right', 'left', 'right');
             $t2->head = array($authstrs->transid,
@@ -455,7 +455,7 @@ function authorize_print_order_details($orderno)
                 }
             }
             else {
-                $t2->data[] = array(get_string('noreturns', 'enrol_authorize'));
+                $t2->data[] = $authstrs->noreturns;
             }
             print_table($t2);
         }