mirror of
https://github.com/smarty-php/smarty.git
synced 2025-10-19 15:35:20 +02:00
- remove exception_handler property from Smarty class
- added Smarty's own exceptions SmartyException and SmartyCompilerException
This commit is contained in:
@@ -19,9 +19,9 @@
|
||||
function smarty_block_php($params, $content, $smarty, &$repeat, $template)
|
||||
{
|
||||
if (!$smarty->allow_php_tag) {
|
||||
throw new Exception("{php} is deprecated, set allow_php_tag = true to enable");
|
||||
throw new SmartyException("{php} is deprecated, set allow_php_tag = true to enable");
|
||||
}
|
||||
eval($content);
|
||||
return '';
|
||||
}
|
||||
?>
|
||||
?>
|
Reference in New Issue
Block a user