Skip to content

Commit

Permalink
Fixes attachments, remove findfile to allow autoloader in different m…
Browse files Browse the repository at this point in the history
…odules
  • Loading branch information
svenbw committed Apr 18, 2018
1 parent 4100e11 commit e763093
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions classes/Kohana/Email.php
Original file line number Diff line number Diff line change
Expand Up @@ -495,11 +495,11 @@ public function send($to = FALSE, $from = FALSE, $subject = FALSE, $body = FALSE

if (is_string($attachment))
{
$this->attach($attachment);
$this->attach_content($attachment);
}
elseif (is_array($attachment))
{
$this->attach($attachment['file'], $attachment['name']);
$this->attach_content($attachment['file'], $attachment['name']);
}
}

Expand Down
3 changes: 1 addition & 2 deletions init.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<?php

// Load mailers trough composer autoload
require_once Kohana::find_file('vendor', 'autoload');
require_once 'vendor/autoload.php';

0 comments on commit e763093

Please sign in to comment.