]> git.donarmstrong.com Git - roundcube.git/commitdiff
Really fix problem with emoticons
authorVincent Bernat <bernat@debian.org>
Sun, 22 Jun 2008 12:14:20 +0000 (12:14 +0000)
committerJérémy Bobbio <lunar@debian.org>
Sat, 18 Jun 2011 17:37:43 +0000 (19:37 +0200)
debian/patches/use_packaged_tinymce.patch

index 5647a3fde7ea9718cdc9076343c03f312f51bd6b..72643fc96312250d70bf7f898a76de4646bc093f 100644 (file)
@@ -19,6 +19,18 @@ Index: roundcube-0.1~rc2/program/steps/mail/sendmail.inc
        // add the image to the MIME message
 -      $img_file = INSTALL_PATH . '/' . $searchstr . $image_name;
 +      $img_file = '/usr/share/tinymce/www/plugins/emotions/img/' . $image_name;
-       if(! $mime_message->addHTMLImage($img_file, 'image/gif', '', true, '_' . $image_name))
+-      if(! $mime_message->addHTMLImage($img_file, 'image/gif', '', true, '_' . $image_name))
++      if(! $mime_message->addHTMLImage($img_file, 'image/gif', '', true, $image_name))
          $OUTPUT->show_message("emoticonerror", 'error');
  
+--- a/program/steps/mail/sendmail.inc~ 2008-04-30 10:21:42.000000000 +0200
++++ a/program/steps/mail/sendmail.inc  2008-06-22 14:10:24.000000000 +0200
+@@ -102,7 +102,7 @@
+       array_push($included_images, $image_name);
+       }
+-    $body = $body_pre . 'cid:_' . $image_name . $body_post;
++    $body = $body_pre . $img_file . $body_post;
+     $last_img_pos = $pos2;
+     }