- 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')) { if(!Setting::getValue('task_scheduler')) {
// disable task scheduler (cron) be default // disable task scheduler (cron) be default
Setting::setValue('task_scheduler', array( Setting::setValue('task_scheduler', array(
'enabled' => false 'method' => 'WordPress'
)); ));
} }

View File

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