From 36e5d9b7e14e7c2367a95317630026933c84b86f Mon Sep 17 00:00:00 2001 From: ethem Date: Tue, 25 Jul 2006 17:38:32 +0000 Subject: [PATCH] Merged from 16stable. --- enrol/authorize/authorizenetlib.php | 4 ++-- enrol/authorize/config.html | 2 +- enrol/authorize/enrol.php | 4 +++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/enrol/authorize/authorizenetlib.php b/enrol/authorize/authorizenetlib.php index e6e01696d0a..fa9e55ae41f 100644 --- a/enrol/authorize/authorizenetlib.php +++ b/enrol/authorize/authorizenetlib.php @@ -10,8 +10,8 @@ define('AN_ERROR', '3'); define('AN_DELIM', '|'); define('AN_ENCAP', '"'); -require_once('const.php'); -require_once('enrol.php'); +require_once($CFG->dirroot.'/enrol/authorize/const.php'); +require_once($CFG->dirroot.'/enrol/authorize/enrol.php'); /** * Gets settlement date and time diff --git a/enrol/authorize/config.html b/enrol/authorize/config.html index 71b096b8e16..5774fec9d80 100755 --- a/enrol/authorize/config.html +++ b/enrol/authorize/config.html @@ -48,7 +48,7 @@ if (!isset($frm->acceptccs)) { enrol_cost: - + . diff --git a/enrol/authorize/enrol.php b/enrol/authorize/enrol.php index 57398cea786..266562b81c5 100755 --- a/enrol/authorize/enrol.php +++ b/enrol/authorize/enrol.php @@ -466,7 +466,9 @@ class enrolment_plugin_authorize global $CFG; // site settings - set_config('enrol_cost', optional_param('enrol_cost', 5, PARAM_INT)); + if (($cost = optional_param('enrol_cost', 5, PARAM_INT)) > 0) { + set_config('enrol_cost', $cost); + } set_config('enrol_currency', optional_param('enrol_currency', 'USD', PARAM_ALPHA)); set_config('enrol_mailstudents', optional_param('enrol_mailstudents', 0, PARAM_BOOL)); set_config('enrol_mailteachers', optional_param('enrol_mailteachers', 0, PARAM_BOOL));