changed $smarty->_syntax_error to $smarty->trigger_error

This commit is contained in:
boots
2003-11-29 00:49:09 +00:00
parent a4908607e6
commit b0563469a0

View File

@@ -36,14 +36,14 @@ function smarty_function_config_load($params, &$smarty)
$_global = isset($params['global']) ? $smarty->_dequote($params['global']) : false; $_global = isset($params['global']) ? $smarty->_dequote($params['global']) : false;
if (!isset($_file) || strlen($_file) == 0) { if (!isset($_file) || strlen($_file) == 0) {
$smarty->_syntax_error("missing 'file' attribute in config_load tag", E_USER_ERROR, __FILE__, __LINE__); $smarty->trigger_error("missing 'file' attribute in config_load tag", E_USER_ERROR, __FILE__, __LINE__);
} }
if (isset($_scope)) { if (isset($_scope)) {
if ($_scope != 'local' && if ($_scope != 'local' &&
$_scope != 'parent' && $_scope != 'parent' &&
$_scope != 'global') { $_scope != 'global') {
$smarty->_syntax_error("invalid 'scope' attribute value", E_USER_ERROR, __FILE__, __LINE__); $smarty->trigger_error("invalid 'scope' attribute value", E_USER_ERROR, __FILE__, __LINE__);
} }
} else { } else {
if ($_global) { if ($_global) {