From eee3645ffee03843fc561f8f6e45cd9cfa439da5 Mon Sep 17 00:00:00 2001 From: Paul Gear Date: Fri, 14 Mar 2014 09:06:51 +1000 Subject: [PATCH] Fix another Scrutinizer issue; not sure if this code is used any more --- html/pdf.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/html/pdf.php b/html/pdf.php index f629ddd9f..f25ff4490 100644 --- a/html/pdf.php +++ b/html/pdf.php @@ -27,7 +27,6 @@ if (strpos($_SERVER['REQUEST_URI'], "debug")) ini_set('error_reporting', 0); } -$filename = $config['project_id']."-report.pdf"; $html = ""; $type = (isset($_GET['type']) ? $_GET['type'] : ""); $report = (isset($_GET['report']) ? $_GET['report'] : ""); @@ -41,6 +40,8 @@ include("includes/authenticate.inc.php"); if (!$_SESSION['authenticated']) { $html .= "unauthenticated"; } +$filename = $config['project_id']."-report.pdf"; + require_once("includes/tcpdf/config/lang/eng.php"); require_once("includes/tcpdf/tcpdf.php"); @@ -49,6 +50,7 @@ class ObsPDF extends TCPDF { public function Footer() { + global $config; // Posistion at 15mm from bottom $this->SetY(-15); // Set Font