PJ scheduler only enterprise

This commit is contained in:
fbsanchez 2022-03-21 12:07:14 +01:00
parent 2796d3c4e2
commit 82c5cbb929

View File

@ -660,20 +660,23 @@ $tip = ui_print_help_tip(
), ),
true true
); );
$table_other->data[$i][0] = __('PhantomJS cache cleanup ').$tip;
$table_other->data[$i++][1] = html_print_input( if (enterprise_installed() === true) {
[ $table_other->data[$i][0] = __('PhantomJS cache cleanup ').$tip;
'type' => 'select', $table_other->data[$i++][1] = html_print_input(
'name' => 'phantomjs_cache_interval', [
'return' => true, 'type' => 'select',
'fields' => [ 'name' => 'phantomjs_cache_interval',
PHANTOM_CACHE_CLEANUP_ONCE => __('No scheduled'), 'return' => true,
PHANTOM_CACHE_CLEANUP_WEEKLY => __('Each week'), 'fields' => [
PHANTOM_CACHE_CLEANUP_DAILY => __('Each day'), PHANTOM_CACHE_CLEANUP_ONCE => __('No scheduled'),
], PHANTOM_CACHE_CLEANUP_WEEKLY => __('Each week'),
'selected' => ($config['phantomjs_cache_interval'] ?? PHANTOM_CACHE_CLEANUP_ONCE), PHANTOM_CACHE_CLEANUP_DAILY => __('Each day'),
] ],
); 'selected' => ($config['phantomjs_cache_interval'] ?? PHANTOM_CACHE_CLEANUP_ONCE),
]
);
}
echo '<form id="form_setup" method="post">'; echo '<form id="form_setup" method="post">';