MDL-50482 tool_lp: Use list_competencies as static and bump version
This commit is contained in:
@@ -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()));
|
||||
|
||||
@@ -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).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user