From 4284d33c5102450fac97eadb1bf081dce37007f8 Mon Sep 17 00:00:00 2001 From: Johannes Burk Date: Sat, 9 Apr 2016 11:26:04 +0200 Subject: [PATCH] Fix: Use correct instance name. fixes #35 https://github.com/emeneo/moodle-enrol_apply/issues/35 --- locallib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locallib.php b/locallib.php index d2d1609..b84fda8 100644 --- a/locallib.php +++ b/locallib.php @@ -41,7 +41,7 @@ class enrol_apply_enrol_form extends moodleform { $mform = $this->_form; $instance = $this->_customdata; $this->instance = $instance; - $plugin = enrol_get_plugin('self'); + $plugin = enrol_get_plugin('apply'); $heading = $plugin->get_instance_name($instance); $mform->addElement('header', 'selfheader', $heading);