Skip to content
Permalink
Browse files

MDL-55203 forms: Use correct admin folder name.

When the admin folder if renamed, the system must replace that when
adding the competencies form elements to the QuickForm Library.
  • Loading branch information...
mr-russ committed Nov 7, 2016
1 parent c1971a2 commit 12b5512f2dc1eac4a375b267f22bb6ae2deb254a
Showing with 2 additions and 2 deletions.
  1. +2 −2 admin/tool/lp/lib.php
@@ -176,7 +176,7 @@ function tool_lp_coursemodule_standard_elements($formwrapper, $mform) {
$mform->addElement('header', 'competenciessection', get_string('competencies', 'core_competency'));
MoodleQuickForm::registerElementType('course_competencies',
"$CFG->dirroot/admin/tool/lp/classes/course_competencies_form_element.php",
"$CFG->dirroot/$CFG->admin/tool/lp/classes/course_competencies_form_element.php",
'tool_lp_course_competencies_form_element');
$cmid = null;
if ($cm = $formwrapper->get_coursemodule()) {
@@ -189,7 +189,7 @@ function tool_lp_coursemodule_standard_elements($formwrapper, $mform) {
$mform->addElement('course_competencies', 'competencies', get_string('modcompetencies', 'tool_lp'), $options);
$mform->addHelpButton('competencies', 'modcompetencies', 'tool_lp');
MoodleQuickForm::registerElementType('course_competency_rule',
"$CFG->dirroot/admin/tool/lp/classes/course_competency_rule_form_element.php",
"$CFG->dirroot/$CFG->admin/tool/lp/classes/course_competency_rule_form_element.php",
'tool_lp_course_competency_rule_form_element');
// Reuse the same options.
$mform->addElement('course_competency_rule', 'competency_rule', get_string('uponcoursemodulecompletion', 'tool_lp'), $options);

0 comments on commit 12b5512

Please sign in to comment.
You can’t perform that action at this time.