]> git.mjollnir.org Git - moodle.git/commitdiff
Show errors in original language.
authorethem <ethem>
Wed, 5 Apr 2006 08:28:12 +0000 (08:28 +0000)
committerethem <ethem>
Wed, 5 Apr 2006 08:28:12 +0000 (08:28 +0000)
You can't do this action: native_action

enrol/authorize/lib.php

index 7d172eea5a674b83d2941bd128e905e58996ed21..c251c231af6fa6ed76ef8e9e500a9765a0ce27f2 100644 (file)
@@ -197,7 +197,7 @@ function print_authorize_order_details($orderno) {
 
     if (!empty($cmdcapture)) { // CAPTURE
         if (!in_array(ORDER_CAPTURE, $status->actions)) {
-            $a->action = ORDER_CAPTURE;
+            $a->action = $authstrs->capture;
             error(get_string('youcantdo', 'enrol_authorize', $a));
         }
 
@@ -246,7 +246,7 @@ function print_authorize_order_details($orderno) {
     }
     elseif (!empty($cmdrefund)) { // REFUND
         if (!in_array(ORDER_REFUND, $status->actions)) {
-            $a->action = ORDER_REFUND;
+            $a->action = $authstrs->refund;
             error(get_string('youcantdo', 'enrol_authorize', $a));
         }
 
@@ -305,7 +305,7 @@ function print_authorize_order_details($orderno) {
     }
     elseif (!empty($cmdvoid)) { // VOID
         if (!in_array(ORDER_VOID, $status->actions)) {
-            $a->action = ORDER_VOID;
+            $a->action = $authstrs->void;
             error(get_string('youcantdo', 'enrol_authorize', $a));
         }
 
@@ -389,7 +389,7 @@ function print_authorize_order_details($orderno) {
     }
     elseif (!empty($cmddelete)) { // DELETE
         if (!in_array(ORDER_DELETE, $status->actions)) {
-            $a->action = ORDER_DELETE;
+            $a->action = $authstrs->delete;
             error(get_string('youcantdo', 'enrol_authorize', $a));
         }
         if (empty($cmdconfirm)) {