From 9b47e0018e79cd3d5b788d8f06c75034cc67208a Mon Sep 17 00:00:00 2001 From: ethem Date: Tue, 11 Apr 2006 12:37:41 +0000 Subject: [PATCH] Make function names as library name. --- enrol/authorize/index.php | 4 ++-- enrol/authorize/lib.php | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/enrol/authorize/index.php b/enrol/authorize/index.php index fde08f9990..5949fe6acc 100644 --- a/enrol/authorize/index.php +++ b/enrol/authorize/index.php @@ -33,10 +33,10 @@ /// If orderid is empty, user wants to see all orders if (empty($orderid)) { - print_authorize_orders(); + authorize_print_orders(); } else { - print_authorize_order_details($orderid); + authorize_print_order_details($orderid); } /// Print footer diff --git a/enrol/authorize/lib.php b/enrol/authorize/lib.php index 1eab58f35f..5cb30e89b0 100644 --- a/enrol/authorize/lib.php +++ b/enrol/authorize/lib.php @@ -114,7 +114,7 @@ function authorize_print_orders() if ($records = get_records_sql($select . $from . $where . $sort . $limit)) { foreach ($records as $record) { - $actionstatus = get_status_action($record); + $actionstatus = authorize_get_status_action($record); $actions = ''; if (empty($actionstatus->actions)) { @@ -181,7 +181,7 @@ function authorize_print_order_details($orderno) echo "\n"; $settled = settled($order); - $status = get_status_action($order); + $status = authorize_get_status_action($order); $table->data[] = array("$authstrs->orderid:", $orderno); $table->data[] = array("$authstrs->transid:", $order->transid); @@ -436,7 +436,7 @@ function authorize_print_order_details($orderno) $refunds = get_records('enrol_authorize_refunds', 'orderid', $orderno); if ($refunds) { foreach ($refunds as $rf) { - $substatus = get_status_action($rf); + $substatus = authorize_get_status_action($rf); $subactions = ' '; if (empty($substatus->actions)) { $subactions .= $strs->none; @@ -464,12 +464,12 @@ function authorize_print_order_details($orderno) } /** - * get_status_action + * authorize_get_status_action * * @param object $order Order details. * @return object */ -function get_status_action($order) +function authorize_get_status_action($order) { global $CFG, $USER; static $timediff30; -- 2.39.5