Skip to content

Commit 8cd0a13

Browse files
Merge pull request #21 from catalyst/class-load-bug
Fix class loading bug #20
2 parents 61abb47 + 4fcfcf3 commit 8cd0a13

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
@@ -32,7 +32,9 @@ class before_standard_head_html_generation {
3232
* @param \core\hook\output\standard_head_html_prepend $hook
3333
*/
3434
public static function callback(\core\hook\output\before_standard_head_html_generation $hook): void {
35-
GLOBAL $PAGE;
35+
global $PAGE, $CFG;
36+
37+
require_once($CFG->dirroot . '/admin/tool/seo/lib.php');
3638

3739
// If URL should not be indexed, add the noindex meta tag to page.
3840
if (tool_seo_is_url_indexable($PAGE->url->get_path()) == false) {

0 commit comments

Comments
 (0)