From 3c2c8d96aa01623cb222b2418e05981ae9a3509a Mon Sep 17 00:00:00 2001 From: Jake Bentvelzen Date: Mon, 11 Apr 2016 16:44:26 +1000 Subject: [PATCH] fix(ContentReviewNotificationJob): Changed to use ->config() system so that the next_run_hour can be configured in YAML. --- code/jobs/ContentReviewNotificationJob.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/jobs/ContentReviewNotificationJob.php b/code/jobs/ContentReviewNotificationJob.php index 7dfdd7b..c884b0c 100644 --- a/code/jobs/ContentReviewNotificationJob.php +++ b/code/jobs/ContentReviewNotificationJob.php @@ -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") );