Hopefully fix attachments directory misconfig
This commit is contained in:
parent
e7babb7523
commit
ee182f3c6e
|
|
@ -15,7 +15,7 @@ class EmailAttachmentsController extends AppController {
|
||||||
|
|
||||||
$file = $this->EmailAttachment->findById($id);
|
$file = $this->EmailAttachment->findById($id);
|
||||||
|
|
||||||
$file_path = Configure::read('email_directory');
|
$file_path = Configure::read('attachments_directory');
|
||||||
if(file_exists($file_path."/".$file['EmailAttachment']['name'])) {
|
if(file_exists($file_path."/".$file['EmailAttachment']['name'])) {
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -55,7 +55,7 @@ class EmailAttachmentsController extends AppController {
|
||||||
$file = $this->EmailAttachment->find('first', array('conditions'=>array('EmailAttachment.id'=>$id)));
|
$file = $this->EmailAttachment->find('first', array('conditions'=>array('EmailAttachment.id'=>$id)));
|
||||||
//$this->set('attachment', $file);
|
//$this->set('attachment', $file);
|
||||||
|
|
||||||
$file_path = Configure::read('email_directory');
|
$file_path = Configure::read('attachments_directory');
|
||||||
|
|
||||||
$contents = file_get_contents($file_path."/".$file['EmailAttachment']['name']);
|
$contents = file_get_contents($file_path."/".$file['EmailAttachment']['name']);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue