From ea99ab22a9cdc8bf421d29ffa93dc396f804b8a8 Mon Sep 17 00:00:00 2001 From: nupplaPhil Date: Tue, 4 Feb 2020 21:38:59 +0100 Subject: [PATCH] Fix content not allowed flag ... --- src/Util/EMailer/NotifyMailBuilder.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Util/EMailer/NotifyMailBuilder.php b/src/Util/EMailer/NotifyMailBuilder.php index b7d11369e..8a7eea426 100644 --- a/src/Util/EMailer/NotifyMailBuilder.php +++ b/src/Util/EMailer/NotifyMailBuilder.php @@ -27,7 +27,7 @@ class NotifyMailBuilder extends MailBuilder protected $siteAdmin; /** @var bool */ - private $contentAllowed = true; + private $contentAllowed = false; /** @var string */ private $title = ''; /** @var array Details to print a photo: @@ -65,7 +65,7 @@ class NotifyMailBuilder extends MailBuilder $this->withSender($siteName, $siteEmailAddress, $siteEmailAddress); // check whether sending post content in email notifications is allowed - $this->contentAllowed = $this->config->get('system', 'enotify_no_content'); + $this->contentAllowed = !$this->config->get('system', 'enotify_no_content', false); } /**