Skip to content

Commit 62c94da

Browse files
brendanheywoodbwalkerl
authored andcommitted
Fix class loading bug #20
1 parent 1b5174d commit 62c94da

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

classes/local/hook/output/before_standard_head_html_generation.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ class before_standard_head_html_generation {
3434
* @param \core\hook\output\before_standard_head_html_generation $hook
3535
*/
3636
public static function callback(\core\hook\output\before_standard_head_html_generation $hook): void {
37-
GLOBAL $PAGE;
37+
global $PAGE, $CFG;
38+
39+
require_once($CFG->dirroot . '/admin/tool/seo/lib.php');
3840

3941
// If URL should not be indexed, add the noindex meta tag to page.
4042
if (seo::is_url_indexable($PAGE->url->get_path()) == false) {

0 commit comments

Comments
 (0)