mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
Fix link bug in html_image function, also make output XHTML compatible
This commit is contained in:
2
NEWS
2
NEWS
@@ -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)
|
||||
|
@@ -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: */
|
||||
|
Reference in New Issue
Block a user