*** empty log message ***

This commit is contained in:
andrey
2000-12-04 21:51:45 +00:00
parent 977334922f
commit 8870f9cae5
4 changed files with 6 additions and 4 deletions

View File

@@ -709,6 +709,7 @@ class Smarty
[=] [=]
/x', $tag_args, $match); /x', $tag_args, $match);
$tokens = $match[0]; $tokens = $match[0];
$var_delims = array('$', '#', '%');
$attrs = array(); $attrs = array();
/* Parse state: /* Parse state:
@@ -755,7 +756,7 @@ class Smarty
/* If the token is not variable (doesn't start with /* If the token is not variable (doesn't start with
'$', '#', or '%') and not enclosed in single or '$', '#', or '%') and not enclosed in single or
double quotes we single-quote it. */ double quotes we single-quote it. */
else if (!in_array($token{0}, array('$', '#', '%')) && else if (!in_array($token{0}, $var_delims) &&
!(($token{0} == '"' || $token[0] == "'") && !(($token{0} == '"' || $token[0] == "'") &&
$token{strlen($token)-1} == $token{0})) $token{strlen($token)-1} == $token{0}))
$token = "'".$token."'"; $token = "'".$token."'";

View File

@@ -18,4 +18,4 @@ My interests are:
none none
{/section} {/section}
{html_options values=$LastName output=$FirstName|replace:"a":"@"} {html_options values=#title# output=$FirstName|replace:"a":"@"}

View File

@@ -709,6 +709,7 @@ class Smarty
[=] [=]
/x', $tag_args, $match); /x', $tag_args, $match);
$tokens = $match[0]; $tokens = $match[0];
$var_delims = array('$', '#', '%');
$attrs = array(); $attrs = array();
/* Parse state: /* Parse state:
@@ -755,7 +756,7 @@ class Smarty
/* If the token is not variable (doesn't start with /* If the token is not variable (doesn't start with
'$', '#', or '%') and not enclosed in single or '$', '#', or '%') and not enclosed in single or
double quotes we single-quote it. */ double quotes we single-quote it. */
else if (!in_array($token{0}, array('$', '#', '%')) && else if (!in_array($token{0}, $var_delims) &&
!(($token{0} == '"' || $token[0] == "'") && !(($token{0} == '"' || $token[0] == "'") &&
$token{strlen($token)-1} == $token{0})) $token{strlen($token)-1} == $token{0}))
$token = "'".$token."'"; $token = "'".$token."'";

View File

@@ -18,4 +18,4 @@ My interests are:
none none
{/section} {/section}
{html_options values=$LastName output=$FirstName|replace:"a":"@"} {html_options values=#title# output=$FirstName|replace:"a":"@"}