From 74cbd31c589057881d7256be9693d55882ad6684 Mon Sep 17 00:00:00 2001 From: mohrt Date: Thu, 1 Aug 2002 21:04:38 +0000 Subject: [PATCH] changed default warning type for plugin errors from E_USER_WARNING to E_USER_ERROR --- NEWS | 2 ++ Smarty.class.php | 2 +- TODO | 3 +-- libs/Smarty.class.php | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/NEWS b/NEWS index a6bd3b66..d3f704f2 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,5 @@ + - changed default warning type for plugin errors from + E_USER_WARNING to E_USER_ERROR (Monte) - added $all_extra, $hour_extra, $minute_extra, $second_extra and $meridian_extra parameters to html_select_time function (Rainer Collet, Monte) diff --git a/Smarty.class.php b/Smarty.class.php index dec395fb..b64c6ed1 100644 --- a/Smarty.class.php +++ b/Smarty.class.php @@ -1948,7 +1948,7 @@ function _run_insert_handler($args) Function: _trigger_plugin_error Purpose: trigger Smarty plugin error \*======================================================================*/ - function _trigger_plugin_error($error_msg, $tpl_file = null, $tpl_line = null, $error_type = E_USER_WARNING) + function _trigger_plugin_error($error_msg, $tpl_file = null, $tpl_line = null, $error_type = E_USER_ERROR) { if (isset($tpl_line) && isset($tpl_file)) { trigger_error("Smarty plugin error: [in " . $tpl_file . " line " . diff --git a/TODO b/TODO index 06932c81..b97590ef 100644 --- a/TODO +++ b/TODO @@ -2,7 +2,6 @@ * correctly capture nested php tag syntax in templates: "; ?> * support implementations of prefiltes, mods, and others as class methods. -* possibly implement default modifiers that apply to variables upon display * ability to concatenate values/strings together * fix all E_NOTICE warnings * make simple math easier @@ -10,7 +9,7 @@ * change plugins so $smarty variable always comes first * being able to load config files from PHP scripts * get cache ttl with function call - +* make Config_File booleanize configurable through Smarty FIX: make inserts use normal functions before plugins UPD: change it so that if template comes from some resource, that resource stays as the default, no need to specify it diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index dec395fb..b64c6ed1 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -1948,7 +1948,7 @@ function _run_insert_handler($args) Function: _trigger_plugin_error Purpose: trigger Smarty plugin error \*======================================================================*/ - function _trigger_plugin_error($error_msg, $tpl_file = null, $tpl_line = null, $error_type = E_USER_WARNING) + function _trigger_plugin_error($error_msg, $tpl_file = null, $tpl_line = null, $error_type = E_USER_ERROR) { if (isset($tpl_line) && isset($tpl_file)) { trigger_error("Smarty plugin error: [in " . $tpl_file . " line " .