mirror of
https://github.com/silverstripe/silverstripe-contentreview
synced 2024-10-22 17:05:47 +02:00
fix(ContentReviewNotificationJob): Changed to use ->config() system so that the next_run_hour can be configured in YAML.
This commit is contained in:
parent
44d01ec3c9
commit
3c2c8d96aa
@ -90,11 +90,11 @@ class ContentReviewNotificationJob extends AbstractQueuedJob implements QueuedJo
|
||||
$nextRun = new ContentReviewNotificationJob();
|
||||
|
||||
$nextRunTime = mktime(
|
||||
self::$next_run_hour,
|
||||
self::$next_run_minute,
|
||||
Config::inst()->get(__CLASS__, 'next_run_hour'),
|
||||
Config::inst()->get(__CLASS__, 'next_run_minute'),
|
||||
0,
|
||||
date("m"),
|
||||
date("d") + self::$next_run_in_days,
|
||||
date("d") + Config::inst()->get(__CLASS__, 'next_run_in_days'),
|
||||
date("Y")
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user