Browse Source

Fix: Use correct instance name.

fixes #35
https://github.com/emeneo/moodle-enrol_apply/issues/35
SABERES_37_STABLE
Johannes Burk 9 years ago
parent
commit
4284d33c51
  1. 2
      locallib.php

2
locallib.php

@ -41,7 +41,7 @@ class enrol_apply_enrol_form extends moodleform {
$mform = $this->_form; $mform = $this->_form;
$instance = $this->_customdata; $instance = $this->_customdata;
$this->instance = $instance; $this->instance = $instance;
$plugin = enrol_get_plugin('self'); $plugin = enrol_get_plugin('apply');
$heading = $plugin->get_instance_name($instance); $heading = $plugin->get_instance_name($instance);
$mform->addElement('header', 'selfheader', $heading); $mform->addElement('header', 'selfheader', $heading);

Loading…
Cancel
Save