|
@ -151,13 +151,13 @@ class enrol_apply_plugin extends enrol_plugin { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* Sets up navigation entries. |
|
|
* Sets up navigation entries. |
|
|
* |
|
|
* |
|
|
* @param stdClass $instancesnode |
|
|
* @param stdClass $instancesnode |
|
|
* @param stdClass $instance |
|
|
* @param stdClass $instance |
|
|
* @return void |
|
|
* @return void |
|
|
*/ |
|
|
*/ |
|
|
public function add_course_navigation($instancesnode, stdClass $instance) { |
|
|
public function add_course_navigation($instancesnode, stdClass $instance) { |
|
|
if ($instance->enrol !== 'apply') { |
|
|
if ($instance->enrol !== 'apply') { |
|
|
throw new coding_exception('Invalid enrol instance type!'); |
|
|
throw new coding_exception('Invalid enrol instance type!'); |
|
|
} |
|
|
} |
|
|