diff options
author | alecpl <alec@alec.pl> | 2011-11-30 11:35:43 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-11-30 11:35:43 +0000 |
commit | 0597586b89e86e8b4e22080d4c453475057b47b5 (patch) | |
tree | c5228263a48560439d4c8468dd94ae127cf2abf9 /program/include/rcube_message.php | |
parent | 230ccbaef045d9a355e4f24921e622200dd64398 (diff) |
- Applied fixes from trunk up to r5512
Diffstat (limited to 'program/include/rcube_message.php')
-rw-r--r-- | program/include/rcube_message.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/program/include/rcube_message.php b/program/include/rcube_message.php index 0ecd86c4c..633f59be2 100644 --- a/program/include/rcube_message.php +++ b/program/include/rcube_message.php @@ -142,10 +142,10 @@ class rcube_message * @param string $mime_id Part MIME-ID * @return string URL or false if part does not exist */ - public function get_part_url($mime_id) + public function get_part_url($mime_id, $embed = false) { if ($this->mime_parts[$mime_id]) - return $this->opt['get_url'] . '&_part=' . $mime_id; + return $this->opt['get_url'] . '&_part=' . $mime_id . ($embed ? '&_embed=1' : ''); else return false; } @@ -511,7 +511,7 @@ class rcube_message $img_regexp = '/^image\/(gif|jpe?g|png|tiff|bmp|svg)/'; foreach ($this->inline_parts as $inline_object) { - $part_url = $this->get_part_url($inline_object->mime_id); + $part_url = $this->get_part_url($inline_object->mime_id, true); if ($inline_object->content_id) $a_replaces['cid:'.$inline_object->content_id] = $part_url; if ($inline_object->content_location) { |