mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 00:34:46 +02:00
Added the TreeEnterprise hooks
This commit is contained in:
parent
13ce624339
commit
ed2781f46b
@ -21,6 +21,7 @@ if (is_ajax ()) {
|
||||
check_login ();
|
||||
|
||||
require_once($config['homedir'] . "/include/class/Tree.class.php");
|
||||
enterprise_include_once("include/class/Tree.class.php");
|
||||
require_once($config['homedir'] . "/include/functions_reporting.php");
|
||||
require_once($config['homedir'] . "/include/functions_os.php");
|
||||
|
||||
@ -38,12 +39,23 @@ if (is_ajax ()) {
|
||||
$countModuleStatusMethod = get_parameter('countModuleStatusMethod', 'on_demand');
|
||||
$countAgentStatusMethod = get_parameter('countAgentStatusMethod', 'live');
|
||||
|
||||
$tree = new Tree($type,
|
||||
$id,
|
||||
$childrenMethod,
|
||||
$countModuleStatusMethod,
|
||||
$countAgentStatusMethod
|
||||
);
|
||||
if (class_exists('TreeEnterprise')) {
|
||||
$tree = new TreeEnterprise($type,
|
||||
$id,
|
||||
$childrenMethod,
|
||||
$countModuleStatusMethod,
|
||||
$countAgentStatusMethod
|
||||
);
|
||||
}
|
||||
else {
|
||||
$tree = new Tree($type,
|
||||
$id,
|
||||
$childrenMethod,
|
||||
$countModuleStatusMethod,
|
||||
$countAgentStatusMethod
|
||||
);
|
||||
}
|
||||
|
||||
$tree->setFilter(array(
|
||||
'status' => $filter['status'],
|
||||
'search' => $filter['search']));
|
||||
|
Loading…
x
Reference in New Issue
Block a user