added setup token

This commit is contained in:
alejandro.campos@artica.es 2023-06-19 11:04:08 +02:00
parent d0998432df
commit 1499af3a2d
2 changed files with 18 additions and 0 deletions

View File

@ -730,6 +730,16 @@ $table->data[$i][] = html_print_label_input_block(
)
);
$table->data[$i][] = html_print_label_input_block(
__('Show experimental features'),
html_print_checkbox_switch(
'show_experimental_features',
1,
$config['show_experimental_features'],
true
)
);
echo '<form class="max_floating_element_size" id="form_setup" method="post" action="index.php?sec=gsetup&sec2=godmode/setup/setup&amp;section=general&amp;pure='.$config['pure'].'">';
echo '<fieldset class="margin-bottom-10">';

View File

@ -374,6 +374,10 @@ function config_update_config()
$error_update[] = __('keep_in_process_status_extra_id');
}
if (config_update_value('show_experimental_features', get_parameter('show_experimental_features'), true) === false) {
$error_update[] = __('show_experimental_features');
}
if (config_update_value('console_log_enabled', get_parameter('console_log_enabled'), true) === false) {
$error_update[] = __('Console log enabled');
}
@ -2359,6 +2363,10 @@ function config_process_config()
config_update_value('keep_in_process_status_extra_id', 0);
}
if (!isset($config['show_experimental_features'])) {
config_update_value('show_experimental_features', 0);
}
if (!isset($config['console_log_enabled'])) {
config_update_value('console_log_enabled', 0);
}