andrewhancox / moodle-filter_translations

7 stars 8 forks source link

Migrate to new hook callback in Moodle 4.4+ #186

Open rjnl opened 2 months ago

rjnl commented 2 months ago

Since Moodle 4.4, there is a new hook callback and we now see the following warning on 4.4 sites:

Callback before_footer in filter_translations component should be migrated to new hook callback for core\hook\output\before_footer_html_generation line 7459 of /lib/moodlelib.php: call to debugging() line 7573 of /lib/moodlelib.php: call to {closure}() line 71 of /lib/classes/hook/output/before_footer_html_generation.php: call to get_plugins_with_function() line 1494 of /lib/outputrenderers.php: call to core\hook\output\before_footer_html_generation->process_legacy_callbacks() line 555 of /lib/outputrenderers.php: call to core_renderer->footer() line 325 of /admin/renderer.php: call to plugin_renderer_base->__call() line 945 of /admin/index.php: call to core_admin_renderer->admin_notifications_page()