foreach ($extensions as $ext)
if (($ext['active'] && $ext['type'] == 'extension')) {
$file = $path_to_root.'/'.$ext['path']."/reporting/reports_custom.php";
- if (file_exists($file))
+ if (file_exists($file)) {
+ set_ext_domain($ext['path']);
include_once($file);
+ set_ext_domain();
+ }
}
}
$file = company_path()."/reporting/reports_custom.php";