mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
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:
parent
82f117e32b
commit
c105bbbfa2
2 changed files with 10 additions and 3 deletions
|
|
@ -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 = '';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue