cvs: smarty /libs/plugins function.html_image.php
| From: | Monte Ohrt | Date: | Fri, 07 Mar 2003 18:36:37 +0000 |
| Subject: | cvs: smarty /libs/plugins function.html_image.php | ||
| Groups: | php.smarty.cvs | ||
| Request: | Send a blank email to php-smarty-cvs+get-446@lists.php.net to get a copy of this message | ||
mohrt Fri Mar 7 13:36:37 2003 EDT
Modified files:
/smarty/libs/plugins function.html_image.php
Log:
suppress warning in html_image
Index: smarty/libs/plugins/function.html_image.php
diff -u smarty/libs/plugins/function.html_image.php:1.8
smarty/libs/plugins/function.html_image.php:1.9
--- smarty/libs/plugins/function.html_image.php:1.8 Fri Mar 7 12:06:39 2003
+++ smarty/libs/plugins/function.html_image.php Fri Mar 7 13:36:37 2003
@@ -79,7 +79,7 @@
}
if(!isset($params['width']) || !isset($params['height'])) {
- if(!$_image_data = getimagesize($_image_path)) {
+ if(!$_image_data = @getimagesize($_image_path)) {
if(!file_exists($_image_path)) {
$smarty->trigger_error("html_image: unable to find
'$_image_path'", E_USER_ERROR);
} else if(!is_readable($_image_path)) {