mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
changed default warning type for plugin errors from E_USER_WARNING to E_USER_ERROR
This commit is contained in:
2
NEWS
2
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,
|
- added $all_extra, $hour_extra, $minute_extra,
|
||||||
$second_extra and $meridian_extra parameters to
|
$second_extra and $meridian_extra parameters to
|
||||||
html_select_time function (Rainer Collet, Monte)
|
html_select_time function (Rainer Collet, Monte)
|
||||||
|
@@ -1948,7 +1948,7 @@ function _run_insert_handler($args)
|
|||||||
Function: _trigger_plugin_error
|
Function: _trigger_plugin_error
|
||||||
Purpose: trigger Smarty 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)) {
|
if (isset($tpl_line) && isset($tpl_file)) {
|
||||||
trigger_error("Smarty plugin error: [in " . $tpl_file . " line " .
|
trigger_error("Smarty plugin error: [in " . $tpl_file . " line " .
|
||||||
|
3
TODO
3
TODO
@@ -2,7 +2,6 @@
|
|||||||
* correctly capture nested php tag syntax in templates:
|
* correctly capture nested php tag syntax in templates:
|
||||||
<?php echo "<?php exit(); ?>"; ?>
|
<?php echo "<?php exit(); ?>"; ?>
|
||||||
* support implementations of prefiltes, mods, and others as class methods.
|
* 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
|
* ability to concatenate values/strings together
|
||||||
* fix all E_NOTICE warnings
|
* fix all E_NOTICE warnings
|
||||||
* make simple math easier
|
* make simple math easier
|
||||||
@@ -10,7 +9,7 @@
|
|||||||
* change plugins so $smarty variable always comes first
|
* change plugins so $smarty variable always comes first
|
||||||
* being able to load config files from PHP scripts
|
* being able to load config files from PHP scripts
|
||||||
* get cache ttl with function call
|
* get cache ttl with function call
|
||||||
|
* make Config_File booleanize configurable through Smarty
|
||||||
FIX: make inserts use normal functions before plugins
|
FIX: make inserts use normal functions before plugins
|
||||||
UPD: change it so that if template comes from some resource,
|
UPD: change it so that if template comes from some resource,
|
||||||
that resource stays as the default, no need to specify it
|
that resource stays as the default, no need to specify it
|
||||||
|
@@ -1948,7 +1948,7 @@ function _run_insert_handler($args)
|
|||||||
Function: _trigger_plugin_error
|
Function: _trigger_plugin_error
|
||||||
Purpose: trigger Smarty 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)) {
|
if (isset($tpl_line) && isset($tpl_file)) {
|
||||||
trigger_error("Smarty plugin error: [in " . $tpl_file . " line " .
|
trigger_error("Smarty plugin error: [in " . $tpl_file . " line " .
|
||||||
|
Reference in New Issue
Block a user