From 89c22acf10ad5f0c0175f22d8f40c70983415714 Mon Sep 17 00:00:00 2001 From: Alexander Bias Date: Sat, 30 Mar 2024 20:53:04 +0100 Subject: [PATCH] Regression: Migrating the before_standard_html_head() function to the new hook callback broke the login page on Moodle 4.3, resolves #613 --- lib.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib.php b/lib.php index 4dc43b7e49b..d8c7de17464 100644 --- a/lib.php +++ b/lib.php @@ -504,6 +504,10 @@ function theme_boost_union_pluginfile($course, $cm, $context, $filearea, $args, * @return string */ function theme_boost_union_before_standard_html_head() { + global $CFG; + + // Require local library. + require_once($CFG->dirroot.'/theme/boost_union/locallib.php'); // Call and return callback implementation. return theme_boost_union_callbackimpl_before_standard_html();