Permalink
Browse files

action.php renamed to authorizenetlib.php

Merged from MOODLE_16_STABLE.
  • Loading branch information...
1 parent ba838c8 commit ddd74daef603bba8e7dcd8bcdf6cc8adb7220560 ethem committed May 17, 2006
@@ -66,7 +66,7 @@ function enrol_authorize_upgrade($oldversion=0) {
table_column('enrol_authorize', 'timeupdated', 'settletime', 'integer', '10', 'unsigned', '0', 'not null');
$status = AN_STATUS_AUTH | AN_STATUS_CAPTURE;
if ($settlements = get_records_select('enrol_authorize', "status='$status'", '', 'id, settletime')) {
- include_once("$CFG->dirroot/enrol/authorize/action.php");
+ include_once("$CFG->dirroot/enrol/authorize/authorizenetlib.php");
foreach ($settlements as $settlement) {
execute_sql("UPDATE {$CFG->prefix}enrol_authorize SET settletime = '" .
getsettletime($settlement->settletime) . "' WHERE id = '$settlement->id'", false);
@@ -77,7 +77,7 @@ function enrol_authorize_upgrade($oldversion=0) {
table_column('enrol_authorize', 'timeupdated', 'settletime', 'integer', '10', 'unsigned', '0', 'not null');
$status = AN_STATUS_AUTH | AN_STATUS_CAPTURE;
if ($settlements = get_records_select('enrol_authorize', "status='$status'", '', 'id, settletime')) {
- include_once("$CFG->dirroot/enrol/authorize/action.php");
+ include_once("$CFG->dirroot/enrol/authorize/authorizenetlib.php");
foreach ($settlements as $settlement) {
execute_sql("UPDATE {$CFG->prefix}enrol_authorize SET settletime = '" .
getsettletime($settlement->settletime) . "' WHERE id = '$settlement->id'", false);
@@ -139,7 +139,7 @@ function check_entry($form, $course) {
function cc_submit($form, $course)
{
global $CFG, $USER, $SESSION;
- require_once $CFG->dirroot.'/enrol/authorize/action.php';
+ require_once $CFG->dirroot.'/enrol/authorize/authorizenetlib.php';
$this->prevent_double_paid($course);
@@ -617,7 +617,7 @@ function check_openssl_loaded() {
function cron()
{
global $CFG;
- require_once $CFG->dirroot.'/enrol/authorize/action.php';
+ require_once $CFG->dirroot.'/enrol/authorize/authorizenetlib.php';
$oneday = 86400;
$timenow = time();
@@ -5,7 +5,7 @@
}
require_once('const.php');
-require_once('action.php');
+require_once('authorizenetlib.php');
define('ORDER_CAPTURE', 'capture');
define('ORDER_DELETE', 'delete');

0 comments on commit ddd74da

Please sign in to comment.