- Modifes task scheduler setting to include method type

This commit is contained in:
Vlad
2016-07-14 09:44:16 -04:00
parent 05848ce7aa
commit 88113cf22e
2 changed files with 7 additions and 7 deletions

View File

@@ -72,7 +72,7 @@ class Populator {
if(!Setting::getValue('task_scheduler')) {
// disable task scheduler (cron) be default
Setting::setValue('task_scheduler', array(
'enabled' => false
'method' => 'WordPress'
));
}

View File

@@ -39,9 +39,9 @@
<label>
<input
type="radio"
name="task_scheduler[enabled]"
value=""
<% if not(settings.task_scheduler.enabled) %>
name="task_scheduler[method]"
value="WordPress"
<% if (settings.task_scheduler.method == 'WordPress') %>
checked="checked"
<% endif %>
/><%= __('Visitors to your website (recommended)') %>
@@ -51,9 +51,9 @@
<label>
<input
type="radio"
name="task_scheduler[enabled]"
value="1"
<% if (settings.task_scheduler.enabled) %>
name="task_scheduler[method]"
value="MailPoet"
<% if (settings.task_scheduler.method == 'MailPoet') %>
checked="checked"
<% endif %>
/><%= __("MailPoet's own script. Doesn't work with [link]these hosts[/link].")