mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
Move $this->validate_enrol_form() to check_entry().
This commit is contained in:
parent
c5c56ae00d
commit
d90534da0d
1 changed files with 1 additions and 5 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue