cvs: smarty /libs/plugins function.html_image.php
| From: | Monte Ohrt | Date: | Fri, 07 Mar 2003 19:29:04 +0000 |
| Subject: | cvs: smarty /libs/plugins function.html_image.php | ||
| Groups: | php.smarty.cvs | ||
| Request: | Send a blank email to php-smarty-cvs+get-447@lists.php.net to get a copy of this message | ||
mohrt Fri Mar 7 14:29:04 2003 EDT
Modified files:
/smarty/libs/plugins function.html_image.php
Log:
change E_USER_ERROR to E_USER_NOTICE
Index: smarty/libs/plugins/function.html_image.php
diff -u smarty/libs/plugins/function.html_image.php:1.9
smarty/libs/plugins/function.html_image.php:1.10
--- smarty/libs/plugins/function.html_image.php:1.9 Fri Mar 7 13:36:37 2003
+++ smarty/libs/plugins/function.html_image.php Fri Mar 7 14:29:01 2003
@@ -69,7 +69,8 @@
}
if (empty($file)) {
- $smarty->trigger_error("html_image: missing 'file' parameter",
E_USER_ERROR);
+ $smarty->trigger_error("html_image: missing 'file' parameter",
E_USER_NOTICE);
+ return;
}
if(substr($file,0,1) == DIR_SEP) {
@@ -81,15 +82,19 @@
if(!isset($params['width']) || !isset($params['height'])) {
if(!$_image_data = @getimagesize($_image_path)) {
if(!file_exists($_image_path)) {
- $smarty->trigger_error("html_image: unable to find
'$_image_path'", E_USER_ERROR);
+ $smarty->trigger_error("html_image: unable to find
'$_image_path'", E_USER_NOTICE);
+ return;
} else if(!is_readable($_image_path)) {
- $smarty->trigger_error("html_image: unable to read
'$_image_path'", E_USER_ERROR);
+ $smarty->trigger_error("html_image: unable to read
'$_image_path'", E_USER_NOTICE);
+ return;
} else {
- $smarty->trigger_error("html_image: '$_image_path' is not a valid image
file", E_USER_ERROR);
+ $smarty->trigger_error("html_image: '$_image_path' is not a valid image
file", E_USER_NOTICE);
+ return;
}
}
if(!$smarty->security && !$smarty->_is_secure('file', $_image_path)) {
- $smarty->trigger_error("html_image: (secure) '$_image_path' not in
secure directory", E_USER_ERROR);
+ $smarty->trigger_error("html_image: (secure) '$_image_path' not in
secure directory", E_USER_NOTICE);
+ return;
}
if(!isset($params['width'])) {