fix $smarty.const.foo compiling, clean up double quoted strings,

allow full dollar var syntax in quotes again
This commit is contained in:
mohrt
2003-02-28 15:08:15 +00:00
parent 984a3e8397
commit d785df41b3
13 changed files with 687 additions and 163 deletions

View File

@@ -1,7 +1,5 @@
<?php
require('shared.escape_special_chars.php');
/*
* Smarty plugin
* -------------------------------------------------------------
@@ -13,6 +11,8 @@ require('shared.escape_special_chars.php');
*/
function smarty_function_html_options($params, &$smarty)
{
require_once $smarty->_get_plugin_filepath('shared','escape_special_chars');
extract($params);
$html_result = '';
@@ -35,6 +35,9 @@ function smarty_function_html_options($params, &$smarty)
}
}
if(!empty($name)) {
$html_result = '<select name="' . $name . '">' . "\n" . $html_result . '</select>' . "\n";
}
return $html_result;
}