Skip to content

Commit

Permalink
corrected duplicate emoticon fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
thomascube committed Sep 27, 2006
1 parent 0dff24f commit 4e6eb1f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions program/steps/mail/sendmail.inc
Original file line number Diff line number Diff line change
Expand Up @@ -101,21 +101,21 @@ function rcmail_attach_emoticons(&$mime_message)
$pos + strlen($searchstr),
$pos2 - ($pos + strlen($searchstr)));

$body_post = substr($body, $pos2);

if (! in_array($image_name, $included_images))
{
$body_post = substr($body, $pos2);

// add the image to the MIME message
$img_file = $INSTALL_PATH . '/' . $searchstr . $image_name;
if(! $mime_message->addHTMLImage($img_file, 'image/gif', '', true, '_' . $image_name))
{
show_message("emoticonerror", 'error');
}

$body = $body_pre . 'cid:_' . $image_name . $body_post;
array_push($included_images, $image_name);
}

$body = $body_pre . 'cid:_' . $image_name . $body_post;

$last_img_pos = $pos2;
}

Expand Down

0 comments on commit 4e6eb1f

Please sign in to comment.