From: ethem Date: Wed, 5 Apr 2006 08:28:12 +0000 (+0000) Subject: Show errors in original language. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=0bf8ea6aa03bec5b10997d7c55f1703393bd5719;p=moodle.git Show errors in original language. You can't do this action: native_action --- diff --git a/enrol/authorize/lib.php b/enrol/authorize/lib.php index 7d172eea5a..c251c231af 100644 --- a/enrol/authorize/lib.php +++ b/enrol/authorize/lib.php @@ -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)) {