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);