Load missing global variable

This commit is contained in:
Kumi 2021-11-24 09:36:12 +01:00
parent 90ad8d1078
commit 85d3a2644e

View file

@ -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;