From e901f948f25db35a2639130a4d95df34dba58db2 Mon Sep 17 00:00:00 2001
From: svncommit <devs@roundcube.net>
Date: Tue, 21 Nov 2006 07:34:28 -0500
Subject: [PATCH] Updated Russian localization

---
 program/steps/mail/sendmail.inc |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/program/steps/mail/sendmail.inc b/program/steps/mail/sendmail.inc
index 3e368ee..c3e0170 100644
--- a/program/steps/mail/sendmail.inc
+++ b/program/steps/mail/sendmail.inc
@@ -101,23 +101,21 @@
                          $pos + strlen($searchstr),
                          $pos2 - ($pos + strlen($searchstr)));
 
-write_log('emoticon', "looking for $image_name in array:" . print_r($included_images, true));
+    $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;
     }
    

--
Gitblit v1.9.1