X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Fprn_redirect.php;h=ce525ea1ff788253acabaf994fdb5f8a644013f1;hb=20c9b5846824f0489c6791d74a6c78e2bfb0b2fc;hp=a9f4d336f45092d330976b771a7a938b58896d83;hpb=f38bbd4604a673b34a05c91b0a1502c577fd8800;p=fa-stable.git diff --git a/reporting/prn_redirect.php b/reporting/prn_redirect.php index a9f4d336..ce525ea1 100644 --- a/reporting/prn_redirect.php +++ b/reporting/prn_redirect.php @@ -58,8 +58,7 @@ $rep = $_POST['REP_ID']; $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();