Fix statically calling non-static method

[MAILPOET-1882]
This commit is contained in:
Ján Mikláš
2019-03-21 14:46:04 +01:00
committed by M. Shull
parent bd3d6467bd
commit bce05ce486

View File

@ -91,7 +91,7 @@ class MailPoetMapper {
private function getUnauthorizedEmailMessage($sender, $newsletter) {
$email = $sender ? $sender['from_email'] : null;
if ($email && FreeDomains::isEmailOnFreeDomain($email)) {
if ($email && (new FreeDomains())->isEmailOnFreeDomain($email)) {
$message = '<p>' . sprintf(__('The MailPoet Sending Service cant send email with the email address <i>%s</i>. You need to use an address like <i>you@yourdomain.com</i>.', 'mailpoet'), $email) . '</p>';
$message .= '<p>';
if ($newsletter && $newsletter['id']) {