// customized per company version
$path = company_path();
- $file = $path.'/'.$rep;
+ $file = $path.$rep;
if (file_exists($file)) {
// add local include path
- set_include_path($path.PATH_SEPARATOR.get_include_path());
+ set_include_path(dirname($file).PATH_SEPARATOR.get_include_path());
return $file;
}
// file added by active extension modules
return null;
}
-
?>
\ No newline at end of file
$rep_file = find_custom_file("/reporting/rep$rep.php");
if ($rep_file) {
- chdir(dirname($rep_file));
- require(basename($rep_file));
+ require($rep_file);
} else
display_error("Cannot find report file '$rep'");
exit();