Fix link bug in html_image function, also make output XHTML compatible

This commit is contained in:
mohrt
2003-03-17 15:39:28 +00:00
parent 2df1ca2d00
commit 61a223dae8
2 changed files with 4 additions and 2 deletions

2
NEWS
View File

@@ -1,3 +1,5 @@
- fix link functionality of html_image, also make
output XHTML compatible (Hinrich Donner, Monte)
- append "@" to default modifier vars/args
supress possible warnings (Monte)
- fix problem with escaped double quotes (Monte)

View File

@@ -56,7 +56,7 @@ function smarty_function_html_image($params, &$smarty)
$width = $_val;
break;
case 'link':
$prefix = '<a href="' . $link . '">';
$prefix = '<a href="' . $_val . '">';
$suffix = '</a>';
break;
case 'dpi':
@@ -112,7 +112,7 @@ function smarty_function_html_image($params, &$smarty)
$height = round($height * $_resize);
}
return $prefix . '<img src="'.$file.'" border="'.$border.'" width="'.$width.'" height="'.$height.'"'.$extra.'>' . $suffix;
return $prefix . '<img src="'.$file.'" border="'.$border.'" width="'.$width.'" height="'.$height.'"'.$extra.' />' . $suffix;
}
/* vim: set expandtab: */