Merge pull request #50 from SilbinaryWolf/fix-useconfigforjob

FIX (ContentReviewNotificationJob): Changed to use config system for job.
This commit is contained in:
Damian Mooyman 2016-04-18 11:34:18 +12:00
commit c3d26a8767

View File

@ -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")
);