MDL-81459 core: Add missing legacy callback for header hook

This commit is contained in:
Andrew Nicols 2024-04-08 12:10:28 +08:00
parent 26649f5750
commit 666e830b25
No known key found for this signature in database
GPG Key ID: 6D1E3157C8CFBF14

View File

@ -1365,7 +1365,9 @@ class core_renderer extends renderer_base {
// TODO MDL-81134 Remove after LTS+1.
require_once(__DIR__ . '/classes/hook/output/before_http_headers.php');
di::get(hook_manager::class)->dispatch(new before_http_headers($this));
$hook = new before_http_headers($this);
$hook->process_legacy_callbacks();
di::get(hook_manager::class)->dispatch($hook);
if (\core\session\manager::is_loggedinas()) {
$this->page->add_body_class('userloggedinas');