Load missing global variable
This commit is contained in:
parent
90ad8d1078
commit
85d3a2644e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue