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;