MDL-21437 data - checkbox and multimenu fields search working + require all too
[moodle.git] / enrol / instances.php
index e7cd09d..7f09d88 100644 (file)
@@ -45,6 +45,7 @@ $canconfig = has_capability('moodle/course:enrolconfig', $context);
 $PAGE->set_url('/enrol/instances.php', array('id'=>$course->id));
 $PAGE->set_pagelayout('admin');
 $PAGE->set_title(get_string('enrolmentinstances', 'enrol'));
+$PAGE->set_heading($course->fullname);
 
 $instances = enrol_get_instances($course->id, false);
 $plugins   = enrol_get_plugins(false);
@@ -222,7 +223,7 @@ echo html_writer::table($table);
 // access security is in each plugin
 $candidates = array();
 foreach (enrol_get_plugins(true) as $name=>$plugin) {
-    if (!$link = $plugin->get_candidate_link($course->id)) {
+    if (!$link = $plugin->get_newinstance_link($course->id)) {
         continue;
     }
     $candidates[$link->out(false)] = get_string('pluginname', 'enrol_'.$name);