From 85d3a2644e89dd06b9c17ddaf75d2d12072c361b Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Wed, 24 Nov 2021 09:36:12 +0100 Subject: [PATCH] Load missing global variable --- classes/template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/template.php b/classes/template.php index 59bfffd..a0a3cea 100644 --- a/classes/template.php +++ b/classes/template.php @@ -109,7 +109,7 @@ class template { * @return string|void Can return the PDF in string format if specified. */ public function generate_pdf(bool $preview = false, int $userid = null, bool $return = false) { - global $CFG, $DB, $USER; + global $CFG, $DB, $USER, $SITE; if (empty($userid)) { $user = $USER;