mirror of
https://github.com/smarty-php/smarty.git
synced 2025-10-17 22:45:20 +02:00
- remove exception_handler property from Smarty class
- added Smarty's own exceptions SmartyException and SmartyCompilerException
This commit is contained in:
@@ -64,7 +64,7 @@ function smarty_function_html_image($params, $smarty, $template)
|
||||
if (!is_array($_val)) {
|
||||
$$_key = smarty_function_escape_special_chars($_val);
|
||||
} else {
|
||||
throw new Exception ("html_image: extra attribute '$_key' cannot be an array", E_USER_NOTICE);
|
||||
throw new SmartyException ("html_image: extra attribute '$_key' cannot be an array", E_USER_NOTICE);
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -78,7 +78,7 @@ function smarty_function_html_image($params, $smarty, $template)
|
||||
if (!is_array($_val)) {
|
||||
$extra .= ' ' . $_key . '="' . smarty_function_escape_special_chars($_val) . '"';
|
||||
} else {
|
||||
throw new Exception ("html_image: extra attribute '$_key' cannot be an array", E_USER_NOTICE);
|
||||
throw new SmartyException ("html_image: extra attribute '$_key' cannot be an array", E_USER_NOTICE);
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -136,4 +136,4 @@ function smarty_function_html_image($params, $smarty, $template)
|
||||
return $prefix . '<img src="' . $path_prefix . $file . '" alt="' . $alt . '" width="' . $width . '" height="' . $height . '"' . $extra . ' />' . $suffix;
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
Reference in New Issue
Block a user