diff --git a/src/pages.php b/src/pages.php index 7af8f60..bb4bc86 100644 --- a/src/pages.php +++ b/src/pages.php @@ -137,9 +137,9 @@ class DisplayEmailsPage extends Page { $user = User::parseDomain($this->address, $this->config['blocked_usernames']); $this->if_invalid_redirect_to_random($user, $this->config['domains']); - global $emails; - global $config; + // Set variables for frontend template: $emails = $imapClient->get_emails($user); + $config = $this->config; require "frontend.template.php"; } }