#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:
taggon 2011-02-08 09:39:45 +00:00
parent 7ed29ad10e
commit c633010b7d

View file

@ -338,7 +338,7 @@
if(strpos($matches[0],'|cond')!==false) { if(strpos($matches[0],'|cond')!==false) {
while(strpos($matches[0],'|cond="')!==false) { while(strpos($matches[0],'|cond="')!==false) {
if(preg_match('/ (\w+)=\"([^\"]+)\"\|cond=\"([^\"]+)\"/is', $matches[0], $m)) 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]);
} }
} }