mirror of
https://github.com/silverstripe/silverstripe-contentreview
synced 2024-10-22 17:05:47 +02:00
MNT Use ::create to allow Injector to replace content review emails sending task
This commit is contained in:
parent
27e0f8f517
commit
2e22bd4900
@ -93,7 +93,7 @@ class ContentReviewNotificationJob extends AbstractQueuedJob implements QueuedJo
|
|||||||
{
|
{
|
||||||
$this->queueNextRun();
|
$this->queueNextRun();
|
||||||
|
|
||||||
$task = new ContentReviewEmails();
|
$task = ContentReviewEmails::create();
|
||||||
$task->run(new HTTPRequest("GET", "/dev/tasks/ContentReviewEmails"));
|
$task->run(new HTTPRequest("GET", "/dev/tasks/ContentReviewEmails"));
|
||||||
|
|
||||||
$this->currentStep = 1;
|
$this->currentStep = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user