Fix invoice email pdf attachment being 0 size (#624)

This commit is contained in:
FrancescoUK
2016-10-01 16:59:26 +01:00
parent 15e84f9b37
commit a87629000e
3 changed files with 2 additions and 4 deletions

View File

@@ -545,6 +545,3 @@ $config['rewrite_short_tags'] = FALSE;
| Array: array('10.0.1.200', '192.168.5.0/24')
*/
$config['proxy_ips'] = '';

View File

@@ -2,7 +2,7 @@
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" rev="stylesheet" href="<?php echo base_url();?>dist/invoice_email.css"/>
<link rel="stylesheet" type="text/css" href="<?php echo base_url() . 'dist/invoice_email.css';?>"/>
</head>
<body>

View File

@@ -1469,6 +1469,7 @@ class CI_Email {
.'Content-Disposition: '.$this->_attachments[$i]['disposition'].';'.$this->newline
.'Content-Transfer-Encoding: base64'.$this->newline
.(empty($this->_attachments[$i]['cid']) ? '' : 'Content-ID: <'.$this->_attachments[$i]['cid'].'>'.$this->newline.$this->newline)
.$this->newline
.$this->_attachments[$i]['content'].$this->newline;
}