Files
smarty/libs/sysplugins/method.trigger_error.php
Uwe.Tews d2d8c8925b - removed all internal calls of Smarty::instance()
- fixed code in double quoted strings
2009-08-08 17:28:23 +00:00

30 lines
473 B
PHP

<?php
/**
* Smarty method Trigger_Error
*
* Triggers an error meassage
*
* @package Smarty
* @subpackage SmartyMethod
* @author Uwe Tews
*/
/**
* Triggers an error meassage
*/
/**
* trigger Smarty error
*
* @param string $error_msg
* @param integer $error_type
*/
function trigger_error($smarty, $error_msg, $error_type = E_USER_WARNING)
{
// trigger_error("Smarty error: $error_msg", $error_type);
throw new Exception("Smarty error: $error_msg");
}
?>