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()));
+2 -1
View File
@@ -24,7 +24,8 @@
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2015052412; // The current plugin version (Date: YYYYMMDDXX).
$plugin->version = 2015052413; // The current plugin version (Date: YYYYMMDDXX).
$plugin->requires = 2014110400; // Requires this Moodle version.
$plugin->component = 'tool_lp'; // Full name of the plugin (used for diagnostics).