From b5461c2c2a7071e3537d26985709392c47422668 Mon Sep 17 00:00:00 2001 From: andrey Date: Thu, 18 Jan 2001 17:41:30 +0000 Subject: [PATCH] *** empty log message *** --- Smarty.class.php | 25 +++++++++++++------------ libs/Smarty.class.php | 25 +++++++++++++------------ 2 files changed, 26 insertions(+), 24 deletions(-) diff --git a/Smarty.class.php b/Smarty.class.php index ef5e3540..8f539011 100644 --- a/Smarty.class.php +++ b/Smarty.class.php @@ -426,9 +426,10 @@ class Smarty default: if (isset($this->custom_funcs[$tag_command])) { return $this->_compile_custom_tag($tag_command, $tag_args); - } else - /* TODO syntax error: unknown tag */ - return ""; + } else { + trigger_error("Smarty: syntax error: unknown tag - '$tag_command'", E_USER_WARNING); + return ""; + } } } @@ -453,7 +454,7 @@ class Smarty $name = substr($attrs['name'], 1, -1); if (empty($name)) { - /* TODO syntax error: missing insert name */ + trigger_error("Smarty: syntax error: missing insert name", E_USER_ERROR); } foreach ($attrs as $arg_name => $arg_value) { @@ -472,7 +473,7 @@ class Smarty $attrs = $this->_parse_attrs($tag_args); if (empty($attrs['file'])) { - /* TODO syntax error: missing 'file' attribute */ + trigger_error("Smarty: syntax error: missing 'file' attribute in config_load tag", E_USER_ERROR); } $output = "_parse_attrs($tag_args); if (empty($attrs['file'])) { - /* TODO syntax error: missing 'file' attribute */ + trigger_error("Smarty: syntax error: missing 'file' attribute in include tag", E_USER_ERROR); } else $attrs['file'] = $this->_dequote($attrs['file']); @@ -530,7 +531,7 @@ class Smarty $output = "custom_funcs[$tag_command])) { return $this->_compile_custom_tag($tag_command, $tag_args); - } else - /* TODO syntax error: unknown tag */ - return ""; + } else { + trigger_error("Smarty: syntax error: unknown tag - '$tag_command'", E_USER_WARNING); + return ""; + } } } @@ -453,7 +454,7 @@ class Smarty $name = substr($attrs['name'], 1, -1); if (empty($name)) { - /* TODO syntax error: missing insert name */ + trigger_error("Smarty: syntax error: missing insert name", E_USER_ERROR); } foreach ($attrs as $arg_name => $arg_value) { @@ -472,7 +473,7 @@ class Smarty $attrs = $this->_parse_attrs($tag_args); if (empty($attrs['file'])) { - /* TODO syntax error: missing 'file' attribute */ + trigger_error("Smarty: syntax error: missing 'file' attribute in config_load tag", E_USER_ERROR); } $output = "_parse_attrs($tag_args); if (empty($attrs['file'])) { - /* TODO syntax error: missing 'file' attribute */ + trigger_error("Smarty: syntax error: missing 'file' attribute in include tag", E_USER_ERROR); } else $attrs['file'] = $this->_dequote($attrs['file']); @@ -530,7 +531,7 @@ class Smarty $output = "