remove globals
This commit is contained in:
parent
11a951cc37
commit
598117c021
|
@ -137,9 +137,9 @@ class DisplayEmailsPage extends Page {
|
||||||
$user = User::parseDomain($this->address, $this->config['blocked_usernames']);
|
$user = User::parseDomain($this->address, $this->config['blocked_usernames']);
|
||||||
$this->if_invalid_redirect_to_random($user, $this->config['domains']);
|
$this->if_invalid_redirect_to_random($user, $this->config['domains']);
|
||||||
|
|
||||||
global $emails;
|
// Set variables for frontend template:
|
||||||
global $config;
|
|
||||||
$emails = $imapClient->get_emails($user);
|
$emails = $imapClient->get_emails($user);
|
||||||
|
$config = $this->config;
|
||||||
require "frontend.template.php";
|
require "frontend.template.php";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user