fixed quoting of values in smarty_function_popup()

This commit is contained in:
messju
2004-01-27 22:55:41 +00:00
parent c4c90d87d6
commit aa2a705361
2 changed files with 4 additions and 6 deletions

1
NEWS
View File

@@ -1,3 +1,4 @@
- fix quoting of values in smarty_function_popup() (messju)
- fix handling of hidden sections in Config_File (messju)
- add handling of resources for {config_load} (messju)
- fix bug when using arrays with tr_attr and td_attr in {html_table} (messju)

View File

@@ -31,7 +31,7 @@ function smarty_function_popup($params, &$smarty)
case 'caption':
case 'closetext':
case 'status':
$append .= ',' . strtoupper($_key) . "','" . str_replace("'","\'",$_value) . "'";
$append .= ',' . strtoupper($_key) . ",'" . str_replace("'","\'",$_value) . "'";
break;
case 'fgcolor':
@@ -65,7 +65,8 @@ function smarty_function_popup($params, &$smarty)
case 'frame':
case 'timeout':
case 'delay':
$append .= ',' . strtoupper($_key) . "','$_value'";
case 'function':
$append .= ',' . strtoupper($_key) . ",'$_value'";
break;
case 'sticky':
@@ -83,10 +84,6 @@ function smarty_function_popup($params, &$smarty)
if ($_value) $append .= ',' . strtoupper($_key);
break;
case 'function':
$append .= ',' . strtoupper($_key) . "',$_value";
break;
default:
$smarty->trigger_error("[popup] unknown parameter $_key", E_USER_WARNING);
}