Simplify CronTrigger methods list & its usage

[MAILPOET-2538]
This commit is contained in:
Jan Jakeš
2019-11-18 09:33:01 +01:00
committed by Jack Kitterhing
parent 69b79b4f6c
commit b1aed487be
5 changed files with 5 additions and 14 deletions

View File

@ -109,8 +109,7 @@ class DaemonHttpRunner {
}
function isCronTriggerMethodWordPress() {
$available_methods = CronTrigger::getAvailableMethods();
return $this->settings->get(CronTrigger::SETTING_NAME . '.method') === $available_methods['wordpress'];
return $this->settings->get(CronTrigger::SETTING_NAME . '.method') === CronTrigger::METHOD_WORDPRESS;
}
function checkWPTriggerExecutionRequirements() {