mirror of
https://github.com/smarty-php/smarty.git
synced 2025-10-18 15:05:19 +02:00
fix $smarty.const.foo compiling, clean up double quoted strings,
allow full dollar var syntax in quotes again
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user