Skip to content

Commit 29e1f36

Browse files
Fix class loading bug #20
1 parent 61abb47 commit 29e1f36

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

classes/local/hook/output/before_standard_head_html_generation.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ class before_standard_head_html_generation {
3434
public static function callback(\core\hook\output\before_standard_head_html_generation $hook): void {
3535
GLOBAL $PAGE;
3636

37+
require_once(__DIR__ . '/../../../../lib.php');
38+
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) {
3941
$hook->add_html('<meta name="robots" content="noindex, nofollow" />');

0 commit comments

Comments
 (0)