mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-02 13:21:36 +01:00
- removed all internal calls of Smarty::instance()
- fixed code in double quoted strings
This commit is contained in:
@@ -11,23 +11,19 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* Smarty class Trigger_Error
|
||||
*
|
||||
* Triggers an error meassage
|
||||
*/
|
||||
|
||||
class Smarty_Method_Trigger_Error extends Smarty_Internal_Base {
|
||||
/**
|
||||
* trigger Smarty error
|
||||
*
|
||||
* @param string $error_msg
|
||||
* @param integer $error_type
|
||||
*/
|
||||
public function execute($error_msg, $error_type = E_USER_WARNING)
|
||||
{
|
||||
// trigger_error("Smarty error: $error_msg", $error_type);
|
||||
throw new Exception("Smarty error: $error_msg");
|
||||
}
|
||||
/**
|
||||
* 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");
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user