mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Merge branch '41-error-500-en-consola-falta-enterprise_hook-integria-4406-6' into 'pandora_6.0'
Add enterprise_hook filter to all config_agents_has_remote_configuration functions/6 - #41 See merge request !114
This commit is contained in:
commit
be7faf1734
@ -542,7 +542,7 @@ if ($agents !== false) {
|
|||||||
// Has remote configuration ?
|
// Has remote configuration ?
|
||||||
if (enterprise_installed()) {
|
if (enterprise_installed()) {
|
||||||
enterprise_include_once('include/functions_config_agents.php');
|
enterprise_include_once('include/functions_config_agents.php');
|
||||||
if (config_agents_has_remote_configuration($agent["id_agente"])) {
|
if (enterprise_hook('config_agents_has_remote_configuration',$agent["id_agente"])) {
|
||||||
echo "<a href='index.php?" .
|
echo "<a href='index.php?" .
|
||||||
"sec=gagente&" .
|
"sec=gagente&" .
|
||||||
"sec2=godmode/agentes/configurar_agente&" .
|
"sec2=godmode/agentes/configurar_agente&" .
|
||||||
|
@ -231,7 +231,7 @@ function modules_copy_agent_module_to_agent ($id_agent_module, $id_destiny_agent
|
|||||||
|
|
||||||
if ($module['id_modulo'] == MODULE_DATA) {
|
if ($module['id_modulo'] == MODULE_DATA) {
|
||||||
if (enterprise_installed()) {
|
if (enterprise_installed()) {
|
||||||
if (config_agents_has_remote_configuration($id_agente)) {
|
if (enterprise_hook('config_agents_has_remote_configuration',$id_agente)) {
|
||||||
$result = enterprise_hook(
|
$result = enterprise_hook(
|
||||||
'config_agents_copy_agent_module_to_agent',
|
'config_agents_copy_agent_module_to_agent',
|
||||||
array($id_agent_module, $id_new_module));
|
array($id_agent_module, $id_new_module));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user