diff --git a/webseer_process.php b/webseer_process.php index daf0ade..ba0bc7b 100644 --- a/webseer_process.php +++ b/webseer_process.php @@ -107,7 +107,13 @@ } if (api_plugin_is_enabled('maint')) { - require_once($config['base_path'] . '/plugins/maint/functions.php'); + if (file_exists($config['base_path'] . '/plugins/maint/includes/functions.php')) { + require_once($config['base_path'] . '/plugins/maint/includes/functions.php'); + } else if (file_exists($config['base_path'] . '/plugins/maint/functions.php')) { + require_once($config['base_path'] . '/plugins/maint/functions.php'); + } else { + cacti_log('ERROR: cannot include maint functions', false, 'WEBSEER'); + } } if (function_exists('plugin_maint_check_webseer_url')) {