MDL-76390 tool_lp: Remove magic getter call

Since Moodle 3.3 (see MDL-57273), the magix getters and setters
for persistent classes are deprecated, instead get() and set()
must be used.
This commit is contained in:
Eloy Lafuente (stronk7)
2022-11-20 14:53:17 +01:00
parent 2da8a31849
commit c5569f2965
+1 -1
View File
@@ -278,7 +278,7 @@ class external extends external_api {
));
$competency = api::read_competency($params['competencyid']);
$framework = api::read_framework($competency->get_competencyframeworkid());
$framework = api::read_framework($competency->get('competencyframeworkid'));
self::validate_context($framework->get_context());
$renderable = new output\competency_summary($competency, $framework, $params['includerelated'], $params['includecourses']);
$renderer = $PAGE->get_renderer('tool_lp');