MDL-50482 tool_lp: Use list_competencies as static and bump version

This commit is contained in:
Frederic Massart
2016-04-18 10:58:36 +08:00
parent 76c107eac1
commit 14d9abc261
2 changed files with 3 additions and 3 deletions
+1 -2
View File
@@ -771,8 +771,7 @@ class api {
require_capability('tool/lp:templatemanage', $template->get_context());
// OK - all set.
$templatecompetency = new template_competency();
$competencies = $templatecompetency->list_competencies($id, false);
$competencies = template_competency::list_competencies($id, false);
// Adding the suffix copy.
$template->set_shortname(get_string('duplicateditemname', 'tool_lp', $template->get_shortname()));