mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
Move $this->validate_enrol_form() to check_entry().
This commit is contained in:
parent
c5c56ae00d
commit
d90534da0d
@ -84,7 +84,7 @@ class enrolment_plugin extends enrolment_base
|
||||
function check_entry($form, $course) {
|
||||
if ((!empty($form->password)) || isguest() || $this->zero_cost($course)) {
|
||||
parent::check_entry($form, $course);
|
||||
} else {
|
||||
} elseif ($this->validate_enrol_form($form)) {
|
||||
$this->cc_submit($form, $course);
|
||||
}
|
||||
}
|
||||
@ -103,10 +103,6 @@ class enrolment_plugin extends enrolment_base
|
||||
global $CFG, $USER, $SESSION;
|
||||
require_once $CFG->dirroot.'/enrol/authorize/action.php';
|
||||
|
||||
if (!$this->validate_enrol_form($form)) {
|
||||
return;
|
||||
}
|
||||
|
||||
$this->prevent_double_paid($course);
|
||||
|
||||
$useripno = getremoteaddr();
|
||||
|
Loading…
x
Reference in New Issue
Block a user