mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 10:23:28 +01:00
* eMail: use different image to show that a image was not loaded (due to allowExternalIMGs=no)
This commit is contained in:
parent
bafc7dc836
commit
5e39b80be2
BIN
felamimail/templates/default/images/no-image-shown.png
Normal file
BIN
felamimail/templates/default/images/no-image-shown.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.0 KiB |
@ -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']);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user