Skip to content

Commit

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

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

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

1;
Expand Down

0 comments on commit 3bef4df

Please sign in to comment.