cvs: smarty / NEWS /libs/plugins function.html_image.php
| From: | Monte Ohrt | Date: | Mon, 17 Mar 2003 15:39:28 +0000 |
| Subject: | cvs: smarty / NEWS /libs/plugins function.html_image.php | ||
| Groups: | php.smarty.cvs | ||
| Request: | Send a blank email to php-smarty-cvs+get-464@lists.php.net to get a copy of this message | ||
mohrt Mon Mar 17 10:39:28 2003 EDT
Modified files:
/smarty NEWS
/smarty/libs/plugins function.html_image.php
Log:
Fix link bug in html_image function, also make output XHTML compatible
Index: smarty/NEWS
diff -u smarty/NEWS:1.311 smarty/NEWS:1.312
--- smarty/NEWS:1.311 Sat Mar 15 15:47:29 2003
+++ smarty/NEWS Mon Mar 17 10:39:28 2003
@@ -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)
Index: smarty/libs/plugins/function.html_image.php
diff -u smarty/libs/plugins/function.html_image.php:1.10
smarty/libs/plugins/function.html_image.php:1.11
--- smarty/libs/plugins/function.html_image.php:1.10 Fri Mar 7 14:29:01 2003
+++ smarty/libs/plugins/function.html_image.php Mon Mar 17 10:39:28 2003
@@ -56,7 +56,7 @@
$width = $_val;
break;
case 'link':
- $prefix = '<a href="' . $link . '">';
+ $prefix = '<a href="' . $_val . '">';
$suffix = '</a>';
break;
case 'dpi':
@@ -112,7 +112,7 @@
$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: */