- Modifes task scheduler setting to include method type
This commit is contained in:
@@ -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'
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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].")
|
||||||
|
Reference in New Issue
Block a user