andrewhancox / format_topicsactivitycards

Extension of topics format to present activities as cards
Other
2 stars 2 forks source link

[3.11] doesn't show completion information at all #5

Closed frumbert closed 10 months ago

frumbert commented 1 year ago

Enabling debugging shows that the way you gather completion information has been depreciated

Topic outline
course_section_cm_completion is deprecated and is being replaced by the activity_information output component.
line 441 of /course/renderer.php: call to debugging()
line 179 of /course/format/topicsactivitycards/classes/course_renderer.php: call to core_course_renderer->course_section_cm_completion()
line 142 of /course/format/topicsactivitycards/classes/course_renderer.php: call to format_topicsactivitycards\course_renderer->course_section_cm()
line 93 of /course/format/topicsactivitycards/classes/course_renderer.php: call to format_topicsactivitycards\course_renderer->course_section_cm_list_item()
line 859 of /course/format/renderer.php: call to format_topicsactivitycards\course_renderer->course_section_cm_list()
line 54 of /course/format/topicsactivitycards/format.php: call to format_section_renderer_base->print_multiple_section_page()
line 282 of /customscripts/course/view.php: call to require()
line 960 of /lib/setup.php: call to require()
line 41 of /config.php: call to require_once()
line 5 of /course/view.php: call to require_once()
andrewhancox commented 1 year ago

I'll look at this if/when I support Moodle 4.x