X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fnewmail%2Ffunctions.php;h=482f7197b9ef3543b9b3cdf43cf1f88342c82500;hb=e3812cb291b353059283c0f321a8f6151e50c976;hp=39d3717045f76c34821c022a6028f244914c2ef5;hpb=9f07fa5d6c1a2e29691fac9772bc4e7cf980b9ff;p=squirrelmail.git diff --git a/plugins/newmail/functions.php b/plugins/newmail/functions.php index 39d37170..482f7197 100644 --- a/plugins/newmail/functions.php +++ b/plugins/newmail/functions.php @@ -1,11 +1,16 @@ ' . "\n"; break; + case SM_NEWMAIL_FILETYPE_SVG: + if ($addsuffix) $suffix='.svg'; + $ret_embed='' . "\n"; + break; case SM_NEWMAIL_FILETYPE_OGG: + if ($addsuffix) $suffix='.ogg'; + $ret_embed='' . "\n"; + break; case SM_NEWMAIL_FILETYPE_MP3: - case SM_NEWMAIL_FILETYPE_SVG: + if ($addsuffix) $suffix='.mp3'; + $ret_embed='' . "\n"; + break; default: $ret_embed=''; } @@ -658,11 +692,11 @@ function newmail_media_embed_close($type) { switch ($type) { case SM_NEWMAIL_FILETYPE_SWF: case SM_NEWMAIL_FILETYPE_WAV: - $ret_end="\n"; - break; case SM_NEWMAIL_FILETYPE_OGG: case SM_NEWMAIL_FILETYPE_MP3: case SM_NEWMAIL_FILETYPE_SVG: + $ret_end="\n"; + break; default: $ret_end=''; }