* eMail: use different image to show that a image was not loaded (due to allowExternalIMGs=no)

This commit is contained in:
Klaus Leithoff 2012-11-29 13:56:37 +00:00
parent bafc7dc836
commit 5e39b80be2
2 changed files with 6 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

@ -248,7 +248,12 @@ function hl_email_tag_transform($element, $attribute_array=0)
{
$attribute_array['alt']= $attribute_array['alt'].' [blocked external image:'.$attribute_array['src'].']';
if (!isset($attribute_array['title'])) $attribute_array['title']=$attribute_array['alt'];
$attribute_array['src']=common::image('phpgwapi','dialog_error');
$attribute_array['src']=common::image('felamimail','no-image-shown');
$attribute_array['border'] = 1;
if ($attribute_array['style'])
{
if (stripos($attribute_array['style'],'border')!==false) $attribute_array['style'] = preg_replace('~border(:|-left:|-right:|-bottom:|-top:)+ (0px)+ (none)+;~si','',$attribute_array['style']);
}
}
}
}