From 1aa295735be476cce9b7bd0591dd4469d8526fe9 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Wed, 14 Jun 2023 15:24:38 +0200 Subject: [PATCH] #11549 Fixed widgets --- .../include/lib/Dashboard/Widgets/BlockHistogram.php | 3 +++ .../include/lib/Dashboard/Widgets/GroupedMeterGraphs.php | 3 +++ .../include/lib/Dashboard/Widgets/os_quick_report.php | 1 + 3 files changed, 7 insertions(+) diff --git a/pandora_console/include/lib/Dashboard/Widgets/BlockHistogram.php b/pandora_console/include/lib/Dashboard/Widgets/BlockHistogram.php index ef2b91a3f1..88fcfa1830 100644 --- a/pandora_console/include/lib/Dashboard/Widgets/BlockHistogram.php +++ b/pandora_console/include/lib/Dashboard/Widgets/BlockHistogram.php @@ -143,6 +143,9 @@ class BlockHistogram extends Widget $widgetId ); + // Include. + include_once $config['homedir'].'/include/functions_reporting.php'; + // Width. $this->width = $width; diff --git a/pandora_console/include/lib/Dashboard/Widgets/GroupedMeterGraphs.php b/pandora_console/include/lib/Dashboard/Widgets/GroupedMeterGraphs.php index 2eed27df11..774dbfe7fc 100644 --- a/pandora_console/include/lib/Dashboard/Widgets/GroupedMeterGraphs.php +++ b/pandora_console/include/lib/Dashboard/Widgets/GroupedMeterGraphs.php @@ -170,6 +170,9 @@ class GroupedMeterGraphs extends Widget $widgetId ); + // Include. + include_once $config['homedir'].'/include/functions_reporting.php'; + // Width. $this->width = $width; diff --git a/pandora_console/include/lib/Dashboard/Widgets/os_quick_report.php b/pandora_console/include/lib/Dashboard/Widgets/os_quick_report.php index cd500e2972..0fb08f0719 100644 --- a/pandora_console/include/lib/Dashboard/Widgets/os_quick_report.php +++ b/pandora_console/include/lib/Dashboard/Widgets/os_quick_report.php @@ -133,6 +133,7 @@ class OsQuickReportWidget extends Widget // Includes. enterprise_include_once('/include/functions_services.php'); enterprise_include_once('/include/functions_servicemap.php'); + include_once $config['homedir'].'/include/functions_os.php'; // WARNING: Do not edit. This chunk must be in the constructor. parent::__construct(