Fix content not allowed flag ...

This commit is contained in:
nupplaPhil 2020-02-04 21:38:59 +01:00
parent 1fa69b3e43
commit ea99ab22a9
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90

View file

@ -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);
}
/**