fixed include_once in items
Former-commit-id: e0a7f89a5ead53c8b5cbc49f66e473fa2f77bffa
This commit is contained in:
parent
35d54a7e79
commit
260a149668
|
@ -136,6 +136,15 @@ final class BarsGraph extends Item
|
|||
// Load config.
|
||||
global $config;
|
||||
|
||||
// Load side libraries.
|
||||
include_once $config['homedir'].'/include/functions_visual_map.php';
|
||||
include_once $config['homedir'].'/include/graphs/fgraph.php';
|
||||
|
||||
if (is_metaconsole()) {
|
||||
\enterprise_include_once('include/functions_metaconsole.php');
|
||||
\enterprise_include_once('meta/include/functions_ui_meta.php');
|
||||
}
|
||||
|
||||
// Extract needed properties.
|
||||
$gridColor = static::extractGridColor($data);
|
||||
$backGroundColor = static::extractBackgroundColor($data);
|
||||
|
|
|
@ -202,8 +202,11 @@ final class ColorCloud extends Item
|
|||
|
||||
// Load side libraries.
|
||||
global $config;
|
||||
include_once $config['homedir'].'/include/functions_graph.php';
|
||||
include_once $config['homedir'].'/include/functions_modules.php';
|
||||
if (is_metaconsole()) {
|
||||
\enterprise_include_once('include/functions_metaconsole.php');
|
||||
\enterprise_include_once('meta/include/functions_ui_meta.php');
|
||||
}
|
||||
|
||||
// Get the linked module Id.
|
||||
$linkedModule = static::extractLinkedModule($data);
|
||||
|
|
|
@ -100,6 +100,7 @@ final class DonutGraph extends Item
|
|||
// Load side libraries.
|
||||
global $config;
|
||||
include_once $config['homedir'].'/include/functions_visual_map.php';
|
||||
include_once $config['homedir'].'/include/graphs/functions_d3.php';
|
||||
|
||||
// Extract needed properties.
|
||||
$legendBackGroundColor = static::extractLegendBackgroundColor($data);
|
||||
|
|
|
@ -149,6 +149,11 @@ final class Group extends Item
|
|||
include_once $config['homedir'].'/include/functions_visual_map.php';
|
||||
include_once $config['homedir'].'/include/functions_ui.php';
|
||||
include_once $config['homedir'].'/include/functions_agents.php';
|
||||
include_once $config['homedir'].'/include/functions_users.php';
|
||||
if (is_metaconsole()) {
|
||||
\enterprise_include_once('include/functions_metaconsole.php');
|
||||
\enterprise_include_once('meta/include/functions_ui_meta.php');
|
||||
}
|
||||
|
||||
$groupId = static::extractGroupId($data);
|
||||
$showStatistics = static::extractShowStatistics($data);
|
||||
|
|
|
@ -164,6 +164,10 @@ final class ModuleGraph extends Item
|
|||
global $config;
|
||||
include_once $config['homedir'].'/include/functions_graph.php';
|
||||
include_once $config['homedir'].'/include/functions_modules.php';
|
||||
if (is_metaconsole()) {
|
||||
\enterprise_include_once('include/functions_metaconsole.php');
|
||||
\enterprise_include_once('meta/include/functions_ui_meta.php');
|
||||
}
|
||||
|
||||
$imageOnly = false;
|
||||
|
||||
|
|
|
@ -184,6 +184,11 @@ final class Percentile extends Item
|
|||
global $config;
|
||||
include_once $config['homedir'].'/include/functions_graph.php';
|
||||
include_once $config['homedir'].'/include/functions_modules.php';
|
||||
include_once $config['homedir'].'/include/functions_io.php';
|
||||
if (is_metaconsole()) {
|
||||
\enterprise_include_once('include/functions_metaconsole.php');
|
||||
\enterprise_include_once('meta/include/functions_ui_meta.php');
|
||||
}
|
||||
|
||||
// Get the linked module Id.
|
||||
$linkedModule = static::extractLinkedModule($data);
|
||||
|
|
|
@ -178,7 +178,7 @@ final class SimpleValue extends Item
|
|||
|
||||
// Load side libraries.
|
||||
global $config;
|
||||
include_once $config['homedir'].'/include/functions_graph.php';
|
||||
include_once $config['homedir'].'/include/functions_visual_map.php';
|
||||
|
||||
// Get the linked module Id.
|
||||
$linkedModule = static::extractLinkedModule($data);
|
||||
|
|
|
@ -152,7 +152,14 @@ final class StaticGraph extends Item
|
|||
// Load side libraries.
|
||||
global $config;
|
||||
include_once $config['homedir'].'/include/functions_ui.php';
|
||||
include_once $config['homedir'].'/include/functions_io.php';
|
||||
include_once $config['homedir'].'/include/functions_visual_map.php';
|
||||
include_once $config['homedir'].'/include/functions_modules.php';
|
||||
\enterprise_include_once('godmode/agentes/module_manager.php');
|
||||
if (is_metaconsole()) {
|
||||
\enterprise_include_once('include/functions_metaconsole.php');
|
||||
\enterprise_include_once('meta/include/functions_ui_meta.php');
|
||||
}
|
||||
|
||||
// Get the linked module Id.
|
||||
$linkedModule = static::extractLinkedModule($data);
|
||||
|
@ -226,7 +233,7 @@ final class StaticGraph extends Item
|
|||
|| ($isBooleanModule && $showLastValueTooltip !== 'default')
|
||||
) {
|
||||
if (\is_numeric($value)) {
|
||||
$imgTitle .= __('Last value: ').remove_right_zeros($value);
|
||||
$imgTitle .= __('Last value: ').\remove_right_zeros($value);
|
||||
} else {
|
||||
$imgTitle .= __('Last value: ').$value;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue