mirror of
https://github.com/silverstripe/silverstripe-contentreview
synced 2024-10-22 17:05:47 +02:00
Merge pull request #50 from SilbinaryWolf/fix-useconfigforjob
FIX (ContentReviewNotificationJob): Changed to use config system for job.
This commit is contained in:
commit
c3d26a8767
@ -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