mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2025-02-06 17:51:06 +01:00
yui: don't show silly error image for attachments
This commit is contained in:
parent
b4e429d00a
commit
cb0cad4399
@ -4230,7 +4230,12 @@ url:strUrl, success:function(html){strReturn = html;}, async:false
|
|||||||
|
|
||||||
if(!function_exists('imagejpeg'))
|
if(!function_exists('imagejpeg'))
|
||||||
{
|
{
|
||||||
$img = "'<img src=./themes/{$this->app->Conf->WFconf['defaulttheme']}/images/icon_img_error.png title=\"Keine GD-Erweiterung installiert\" />'";
|
$img = "concat('
|
||||||
|
<span style=\"width:100px;text-align:center;display:block;\">
|
||||||
|
<a href=\"index.php?module=dateien&action=send&id=',d.id,'\">
|
||||||
|
<img src=./themes/{$this->app->Conf->WFconf['defaulttheme']}/images/download.svg title=\"Datei anzeigen\" />
|
||||||
|
</a>
|
||||||
|
</span>')";
|
||||||
}else{
|
}else{
|
||||||
$img = "concat('<span style=\"width:100px;text-align:center;display:block;\"><a href=\"index.php?module=dateien&action=send&id=',d.id,'\"><img src=\"index.php?module=ajax&action=thumbnail&cmd=$cmd&id=',d.id,'\" style=\"border:0;max-width:100px;max-height:100px;\" /></a></span>')";
|
$img = "concat('<span style=\"width:100px;text-align:center;display:block;\"><a href=\"index.php?module=dateien&action=send&id=',d.id,'\"><img src=\"index.php?module=ajax&action=thumbnail&cmd=$cmd&id=',d.id,'\" style=\"border:0;max-width:100px;max-height:100px;\" /></a></span>')";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user