Skip to content

Commit

Permalink
Tabs are out
Browse files Browse the repository at this point in the history
  • Loading branch information
ethem committed Mar 27, 2006
1 parent 70fe1b0 commit 6972506
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions enrol/authorize/index.php
Expand Up @@ -497,7 +497,7 @@ function get_order_status_desc($order)

if (intval($order->transid) == 0) { // test transaction
if (isadmin() || (!empty($CFG->an_teachermanagepay) && isteacher($order->courseid))) {
$ret->actions = array(ORDER_DELETE);
$ret->actions = array(ORDER_DELETE);
}
$ret->status = 'tested';
return $ret;
Expand All @@ -510,13 +510,13 @@ function get_order_status_desc($order)
$order->status = AN_STATUS_EXPIRE;
update_record("enrol_authorize", $order);
if (isadmin() || (!empty($CFG->an_teachermanagepay) && isteacher($order->courseid))) {
$ret->actions = array(ORDER_DELETE);
$ret->actions = array(ORDER_DELETE);
}
$ret->status = 'expired';
}
else {
if (isadmin() || (!empty($CFG->an_teachermanagepay) && isteacher($order->courseid))) {
$ret->actions = array(ORDER_CAPTURE, ORDER_VOID);
$ret->actions = array(ORDER_CAPTURE, ORDER_VOID);
}
$ret->status = 'authorizedpendingcapture';
}
Expand All @@ -525,13 +525,13 @@ function get_order_status_desc($order)
case AN_STATUS_AUTHCAPTURE:
if (settled($order)) {
if (isadmin() || (!empty($CFG->an_teachermanagepay) && isteacher($order->courseid))) {
$ret->actions = array(ORDER_REFUND);
$ret->actions = array(ORDER_REFUND);
}
$ret->status = 'capturedsettled';
}
else {
if (isadmin() || (!empty($CFG->an_teachermanagepay) && isteacher($order->courseid))) {
$ret->actions = array(ORDER_VOID);
$ret->actions = array(ORDER_VOID);
}
$ret->status = 'capturedpendingsettle';
}
Expand All @@ -544,7 +544,7 @@ function get_order_status_desc($order)
}
else {
if (isadmin() || (!empty($CFG->an_teachermanagepay) && isteacher($order->courseid))) {
$ret->actions = array(ORDER_VOID);
$ret->actions = array(ORDER_VOID);
}
$ret->status = 'refunded';
}
Expand All @@ -557,7 +557,7 @@ function get_order_status_desc($order)

case AN_STATUS_EXPIRE:
if (isadmin() || (!empty($CFG->an_teachermanagepay) && isteacher($order->courseid))) {
$ret->actions = array(ORDER_DELETE);
$ret->actions = array(ORDER_DELETE);
}
$ret->status = 'expired';
return $ret;
Expand Down

0 comments on commit 6972506

Please sign in to comment.