mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-03 09:54:27 +02:00
*** empty log message ***
This commit is contained in:
@@ -385,7 +385,12 @@ class Smarty
|
||||
return "";
|
||||
|
||||
/* Split tag into two parts: command and the arguments. */
|
||||
list($tag_command, $tag_args) = preg_split('!\s+!', $template_tag, 2);
|
||||
preg_match('/^(
|
||||
(?:"[^"\\\\]*(?:\\\\.[^"\\\\]*)*" | \'[^\'\\\\]*(?:\\\\.[^\'\\\\]*)*\' | (?>[^"\' ]+))+
|
||||
)
|
||||
(?:\s+(.*))?
|
||||
/x', $template_tag, $match);
|
||||
list(, $tag_command, $tag_args) = $match;
|
||||
|
||||
/* If the tag name matches a variable or section property definition,
|
||||
we simply process it. */
|
||||
|
@@ -14,8 +14,8 @@ My interests are:
|
||||
{else}
|
||||
* {$outer/FirstName} {$outer/LastName}
|
||||
{/if}
|
||||
{$outer/date|date_format:"%B %d, %Y"}
|
||||
{sectionelse}
|
||||
none
|
||||
{/section}
|
||||
|
||||
{html_options values=#title# output=$FirstName|replace:"a":"@"}
|
||||
|
@@ -385,7 +385,12 @@ class Smarty
|
||||
return "";
|
||||
|
||||
/* Split tag into two parts: command and the arguments. */
|
||||
list($tag_command, $tag_args) = preg_split('!\s+!', $template_tag, 2);
|
||||
preg_match('/^(
|
||||
(?:"[^"\\\\]*(?:\\\\.[^"\\\\]*)*" | \'[^\'\\\\]*(?:\\\\.[^\'\\\\]*)*\' | (?>[^"\' ]+))+
|
||||
)
|
||||
(?:\s+(.*))?
|
||||
/x', $template_tag, $match);
|
||||
list(, $tag_command, $tag_args) = $match;
|
||||
|
||||
/* If the tag name matches a variable or section property definition,
|
||||
we simply process it. */
|
||||
|
@@ -14,8 +14,8 @@ My interests are:
|
||||
{else}
|
||||
* {$outer/FirstName} {$outer/LastName}
|
||||
{/if}
|
||||
{$outer/date|date_format:"%B %d, %Y"}
|
||||
{sectionelse}
|
||||
none
|
||||
{/section}
|
||||
|
||||
{html_options values=#title# output=$FirstName|replace:"a":"@"}
|
||||
|
Reference in New Issue
Block a user