diff --git a/cgi-bin/perdiem.php b/cgi-bin/perdiem.php index 790a3f0004..a935f48458 100755 --- a/cgi-bin/perdiem.php +++ b/cgi-bin/perdiem.php @@ -295,7 +295,7 @@ fclose($csvfile); // --- PRINT OUTPUT IN TEMPLATE FILE --- -$template = file_get_contents($_SERVER['REQUEST_SCHEME'] ."://". $_SERVER['HTTP_HOST'] . '/internal/pd-result.en.html', true); +$template = file_get_contents('../internal/pd-result.en.html', true); echo replace_page($template, $html); diff --git a/cgi-bin/reimbursement.php b/cgi-bin/reimbursement.php index 73c93d103e..b78b953402 100755 --- a/cgi-bin/reimbursement.php +++ b/cgi-bin/reimbursement.php @@ -255,7 +255,7 @@ fclose($csvfile); // --- PRINT OUTPUT IN TEMPLATE FILE --- -$template = file_get_contents($_SERVER['REQUEST_SCHEME'] ."://". $_SERVER['HTTP_HOST'] . '/internal/rc-result.en.html', true); +$template = file_get_contents('../internal/rc-result.en.html', true); echo replace_page($template, $html);