Browse Source

Merge pull request #52 from sudile/fix-instancename

Fix: Use correct instance name.
SABERES_37_STABLE
Flotter Totte 9 years ago
parent
commit
eeaf727a02
  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