catalyst / moodle-tool_abconfig

A way to A/B test config, or slowly turn on config for certain audiences or % of traffic
https://moodle.org/plugins/tool_abconfig
6 stars 4 forks source link

Moodle 4.4: Failure due to new Hooks API #65

Closed opitz closed 2 months ago

opitz commented 4 months ago

When running with Moodle 4.4 with debugging set to developer the following errors are shown:

Callback before_http_headers in tool_abconfig component should be migrated to new hook callback for core\hook\output\before_http_headers

and

Callback before_footer in tool_abconfig component should be migrated to new hook callback for core\hook\output\before_footer_html_generation

From Moodle 4.4 a new Hooks API should be used: https://moodledev.io/docs/4.4/apis/core/hooks