fix typo with lang string w/ variable

This commit is contained in:
Josh Bowden committed 2019-04-18 17:15:50 +10:00
1 parent ca3b56c760
commit 0e2e4d722b
1 file changed
+1 -1
+1 -1
View File
@@ -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);