From 598117c02135e5e4b12ae93c4c043e3eb0d4bbcc Mon Sep 17 00:00:00 2001 From: Synox Date: Fri, 23 Feb 2018 22:58:20 +0100 Subject: [PATCH] remove globals --- src/pages.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"; } }