mirror of
https://github.com/silverstripe/silverstripe-contentreview
synced 2024-10-22 15:05:47 +00:00
Compare commits
2 Commits
a31f35ecf5
...
3bdf224edb
Author | SHA1 | Date | |
---|---|---|---|
|
3bdf224edb | ||
|
840a0db70c |
@ -30,8 +30,7 @@ class ContentReviewEmails extends BuildTask
|
|||||||
*/
|
*/
|
||||||
public function run($request)
|
public function run($request)
|
||||||
{
|
{
|
||||||
$senderEmail = SiteConfig::current_site_config()->ReviewFrom;
|
if (!Email::is_valid_address($senderEmail = SiteConfig::current_site_config()->ReviewFrom)) {
|
||||||
if (!Email::is_valid_address($senderEmail)) {
|
|
||||||
throw new RuntimeException(
|
throw new RuntimeException(
|
||||||
sprintf(
|
sprintf(
|
||||||
'Provided sender email address is invalid: "%s".',
|
'Provided sender email address is invalid: "%s".',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user