Skip to content

Commit

Permalink
Fixes the error that occurs when the hook is called.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marvin-Kirch authored and marinaglancy committed Dec 8, 2024
1 parent 69460aa commit 2455c13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion classes/local/hooks/output/before_footer_html_generation.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ class before_footer_html_generation {
* @param \core\hook\output\before_footer_html_generation $hook
*/
public static function callback(\core\hook\output\before_footer_html_generation $hook): void {
global $OUTPUT;
global $OUTPUT, $CFG;
require_once($CFG->dirroot.'/course/format/flexsections/lib.php');

if (during_initial_install() || isset($CFG->upgraderunning)) {
// Do nothing during installation or upgrade.
Expand Down

0 comments on commit 2455c13

Please sign in to comment.