From 0e2e4d722bf1d9a6bcc3366ffcc70772fe309458 Mon Sep 17 00:00:00 2001 From: Josh Bowden Date: Thu, 18 Apr 2019 17:15:50 +1000 Subject: [PATCH] fix typo with lang string w/ variable --- application/controllers/Sales.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/Sales.php b/application/controllers/Sales.php index 731991390..3568659be 100644 --- a/application/controllers/Sales.php +++ b/application/controllers/Sales.php @@ -805,7 +805,7 @@ class Sales extends Secure_Controller $html = $this->load->view("sales/" . $type . "_email", $sale_data, TRUE); // load pdf helper $this->load->helper(array('dompdf', 'file')); - $filename = sys_get_temp_dir() . '/' . $this->lang->line("sales_$type") . '-' . str_replace('/', '-', $number) . '.pdf'; + $filename = sys_get_temp_dir() . '/' . $this->lang->line("sales_" . $type) . '-' . str_replace('/', '-', $number) . '.pdf'; if(file_put_contents($filename, pdf_create($html)) !== FALSE) { $result = $this->email_lib->sendEmail($to, $subject, $text, $filename);