Fixed a tempalte bug that the engine parses javascript code blocks as php echo syntax

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9547 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2011-10-11 00:33:03 +00:00
parent 82f117e32b
commit c105bbbfa2
2 changed files with 10 additions and 3 deletions

View file

@ -379,6 +379,8 @@
// {@ ... } or {$var} or {func(...)}
if($m[1])
{
if(preg_match('@^(\w+)\(@', $m[1], $mm) && !function_exists($mm[1])) return $m[0];
$echo = 'echo ';
if($m[1]{0} == '@') {
$echo = '';