Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Put back skodak's last commit. global $COURSE is $SITE and enrols to …

…site.
  • Loading branch information...
commit 1f7d43cfc4aff835aab0a190b19c77dd207902bc 1 parent 1e0fb10
ethem authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 enrol/authorize/enrol_form.php
View
10 enrol/authorize/enrol_form.php
@@ -6,7 +6,7 @@ class enrol_authorize_form extends moodleform
{
function definition()
{
- global $COURSE;
+ global $course;
global $CFG, $USER;
$paymentmethodsenabled = get_list_of_payment_methods();
@@ -22,7 +22,7 @@ function definition()
$mform->addElement('static', '', '<div align="right">' . $othermethodstr . '&nbsp;&nbsp;</div>', '');
}
- $mform->addElement('hidden', 'id', $COURSE->id);
+ $mform->addElement('hidden', 'id', $course->id);
$mform->setType('id', PARAM_INT);
$mform->addElement('hidden', 'paymentmethod', $paymentmethod);
@@ -220,16 +220,16 @@ function validation($data)
function other_method($currentmethod)
{
- global $COURSE;
+ global $course;
if ($currentmethod == AN_METHOD_CC) {
$otheravailable = in_array(AN_METHOD_ECHECK, get_list_of_payment_methods());
- $url = 'enrol.php?id='.$COURSE->id.'&amp;paymentmethod='.AN_METHOD_ECHECK;
+ $url = 'enrol.php?id='.$course->id.'&amp;paymentmethod='.AN_METHOD_ECHECK;
$stringtofetch = 'usingecheckmethod';
}
else {
$otheravailable = in_array(AN_METHOD_CC, get_list_of_payment_methods());
- $url = 'enrol.php?id='.$COURSE->id.'&amp;paymentmethod='.AN_METHOD_CC;
+ $url = 'enrol.php?id='.$course->id.'&amp;paymentmethod='.AN_METHOD_CC;
$stringtofetch = 'usingccmethod';
}
if ($otheravailable) {
Please sign in to comment.
Something went wrong with that request. Please try again.