fixed bug 642535
This commit is contained in:
parent
e190cf96b0
commit
88a310fde7
1 changed files with 2 additions and 2 deletions
|
|
@ -22,8 +22,8 @@ sub _replacement {
|
|||
my (@param, %data, $image, $output);
|
||||
tie %data, 'Tie::CPHash';
|
||||
@param = WebGUI::Macro::getParams($_[0]);
|
||||
%data = WebGUI::SQL->quickHash("select * from images where name='$param[0]'");
|
||||
$image = WebGUI::Attachment->new($data{filename},"images",$data{imageId});
|
||||
%data = WebGUI::SQL->quickHash("select filename,collateralId from collateral where name='$param[0]'");
|
||||
$image = WebGUI::Attachment->new($data{filename},"images",$data{collateralId});
|
||||
$output = '<a href="'.$image->getURL.'"><img src="'.$image->getThumbnail.
|
||||
'" border="0"></a><br><b>'.$param[0].'</b><p>';
|
||||
return $output;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue