#11126 fixed error ajax

This commit is contained in:
Daniel Cebrian 2023-11-06 14:00:37 +01:00
parent ee231c1ee4
commit 1b989c168b
2 changed files with 2 additions and 0 deletions

View File

@ -35,6 +35,7 @@ class Database extends Element
public function __construct()
{
parent::__construct();
include_once $config['homedir'].'/include/graphs/fgraph.php';
$this->title = __('Database');
$this->ajaxMethods = [
'getStatus',

View File

@ -35,6 +35,7 @@ class Overview extends Element
public function __construct()
{
global $config;
include_once $config['homedir'].'/include/graphs/fgraph.php';
parent::__construct();
if (is_ajax() === true) {
include_once $config['homedir'].'/include/functions_servers.php';