Skip to content

Commit

Permalink
Item2181: Item2596: Corrected checkin
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@5954 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
KennethLavrsen authored and KennethLavrsen committed Jan 6, 2010
1 parent 3bef4df commit 1a29e57
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions core/lib/Foswiki/Render.pm
Expand Up @@ -2169,9 +2169,16 @@ the image is taken from =$url=. The optional =$alt= specifies an alt string.
sub renderIconImage {
my ( $this, $url, $alt ) = @_;

$alt = $alt ? " alt='$alt'" : '';
my %params = (
src => $url,
width => 16,
height => 16,
align => 'top',
border => 0
);
$params{alt} = $alt if defined $alt;

return "<img src='$url'$alt border='0' height='16' width='16' align='top' />";
return CGI::img( \%params );
}

1;
Expand Down

0 comments on commit 1a29e57

Please sign in to comment.