WIP: Backup upload

This commit is contained in:
Jose Gonzalez 2021-03-22 17:52:11 +01:00
parent 4b7c0fc7ee
commit 4ee0c580bb
2 changed files with 4 additions and 4 deletions

View File

@ -92,16 +92,16 @@ $data[0] = __('Web checks');
$adopt = false;
if (isset($id_agent_module)) {
$adopt = policies_is_module_adopt($id_agent_module);
$adopt = enterprise_hook('policies_is_module_adopt', [$id_agent_module]);
}
$id_policy_module = (int) get_parameter('id_policy_module', '');
if ($id_policy_module) {
$module = policies_get_module($id_policy_module);
$module = enterprise_hook('policies_get_module', [$id_policy_module]);
$plugin_parameter = $module['plugin_parameter'];
}
if (!$adopt) {
if ((bool) $adopt === false) {
$data[1] = html_print_textarea(
'plugin_parameter',
15,

View File

@ -33,7 +33,7 @@ global $id_agent_module;
require_once $config['homedir'].'/include/class/WebServerModuleDebug.class.php';
// This page.
$ajaxPage = '/include/ajax/web_server_module_debug';
$ajaxPage = $config['homedir'].'/include/ajax/web_server_module_debug';
// Control call flow for debug window.
try {