MDL-21695 first sample help migration - course full name
[moodle.git] / course / edit_form.php
index bdd5a33..45e9b79 100644 (file)
@@ -85,7 +85,7 @@ class course_edit_form extends moodleform {
         }
 
         $mform->addElement('text','fullname', get_string('fullnamecourse'),'maxlength="254" size="50"');
-        $mform->setHelpButton('fullname', array('coursefullname', get_string('fullnamecourse')), true);
+        $mform->addHelpButton('fullname', 'fullnamecourse');
         $mform->addRule('fullname', get_string('missingfullname'), 'required', null, 'client');
         $mform->setType('fullname', PARAM_MULTILANG);
         if (!empty($course->id) and !has_capability('moodle/course:changefullname', $coursecontext)) {