mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-27 14:22:54 +09:00
#19512234 |cond 문법 컴파일시 short tag 사용하던 버그 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@8077 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
7ed29ad10e
commit
c633010b7d
1 changed files with 1 additions and 1 deletions
|
|
@ -338,7 +338,7 @@
|
|||
if(strpos($matches[0],'|cond')!==false) {
|
||||
while(strpos($matches[0],'|cond="')!==false) {
|
||||
if(preg_match('/ (\w+)=\"([^\"]+)\"\|cond=\"([^\"]+)\"/is', $matches[0], $m))
|
||||
$matches[0] = str_replace($m[0], sprintf('<?php if(%s) {?> %s="%s"<?}?>', $m[3], $m[1], $m[2]), $matches[0]);
|
||||
$matches[0] = str_replace($m[0], sprintf('<?php if(%s) {?> %s="%s"<?php }?>', $m[3], $m[1], $m[2]), $matches[0]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue