- removed all internal calls of Smarty::instance()

- fixed code in double quoted strings
This commit is contained in:
Uwe.Tews
2009-08-08 17:28:23 +00:00
parent fc9b7eef10
commit d2d8c8925b
111 changed files with 952 additions and 1313 deletions

View File

@@ -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");
}
?>