fix(ContentReviewNotificationJob): Changed to use ->config() system so that the next_run_hour can be configured in YAML.

This commit is contained in:
Jake Bentvelzen 2016-04-11 16:44:26 +10:00
parent 44d01ec3c9
commit 3c2c8d96aa
1 changed files with 3 additions and 3 deletions

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