X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Fincludes%2Fpdf_report.inc;h=e3d84a1914e94c8dfda83a6cb954534bab8cfc0f;hb=ba6ef7ddb2676a61cb46091d299708473beb659e;hp=b9ae9410a22d56d2d8e52f243a3553ae1d55e9a4;hpb=37da0ea920fdff712ccef4e1324aa822e981c8fc;p=fa-stable.git diff --git a/reporting/includes/pdf_report.inc b/reporting/includes/pdf_report.inc index b9ae9410..e3d84a19 100644 --- a/reporting/includes/pdf_report.inc +++ b/reporting/includes/pdf_report.inc @@ -361,9 +361,7 @@ class FrontReport extends Cpdf if ($pdf_debug == 1) { - $buf = $this->Output(); - $len = strlen($buf); - $pdfcode = $buf; + $pdfcode = $this->Output(); $pdfcode = str_replace("\n", "\n
", htmlspecialchars($pdfcode)); echo ''; echo trim($pdfcode); @@ -474,7 +472,10 @@ class FrontReport extends Cpdf $fname = substr(realpath($fname), strlen($_SERVER['DOCUMENT_ROOT'])); if (substr($fname,0,1) != '/') $fname = '/'.$fname; - $Ajax->redirect($fname); + if (user_rep_popup()) + $Ajax->popup($fname); + else + $Ajax->redirect($fname); } else { //echo ' //