]> git.donarmstrong.com Git - roundcube.git/commitdiff
Fix a bug when including emoticons
authorVincent Bernat <bernat@debian.org>
Sun, 22 Jun 2008 11:56:11 +0000 (11:56 +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 6e7c62a4c36797aad78103c1291872b110023274..5647a3fde7ea9718cdc9076343c03f312f51bd6b 100644 (file)
@@ -1,5 +1,16 @@
 Index: roundcube-0.1~rc2/program/steps/mail/sendmail.inc
 ===================================================================
+--- a/program/steps/mail/sendmail.inc~ 2008-04-30 10:21:42.000000000 +0200
++++ a/program/steps/mail/sendmail.inc  2008-06-22 13:51:33.000000000 +0200
+@@ -74,7 +74,7 @@
+   
+   $last_img_pos = 0;
+-  $searchstr = 'program/js/tiny_mce/plugins/emotions/images/';
++  $searchstr = 'program/js/tiny_mce/plugins/emotions/img/';
+   // keep track of added images, so they're only added once
+   $included_images = array();
 --- roundcube-0.1~rc2.orig/program/steps/mail/sendmail.inc     2007-11-26 11:42:36.000000000 +0100
 +++ roundcube-0.1~rc2/program/steps/mail/sendmail.inc  2007-11-26 11:44:04.000000000 +0100
 @@ -108,7 +108,7 @@
@@ -7,7 +18,7 @@ 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/images/' . $image_name;
++      $img_file = '/usr/share/tinymce/www/plugins/emotions/img/' . $image_name;
        if(! $mime_message->addHTMLImage($img_file, 'image/gif', '', true, '_' . $image_name))
          $OUTPUT->show_message("emoticonerror", 'error');