Skip to content

Commit

Permalink
MDL-76390 tool_lp: Remove magic getter call
Browse files Browse the repository at this point in the history
Since Moodle 3.3 (see MDL-57273), the magix getters and setters
for persistent classes are deprecated, instead get() and set()
must be used.
  • Loading branch information
stronk7 committed Nov 20, 2022
1 parent 7c14a22 commit ec75faf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/tool/lp/classes/external.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ public static function data_for_competency_summary($competencyid, $includerelate
));

$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');
Expand Down

0 comments on commit ec75faf

Please sign in to comment.