TemplateHandler문법에 대한 보정 추가

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6303 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2009-05-07 10:46:50 +00:00
parent 8270be558f
commit 95f4a018e1

View file

@ -139,7 +139,7 @@
function _compileVarToContext($matches) {
$str = trim(substr($matches[0],1,strlen($matches[0])-2));
if(!$str) return $matches[0];
if(!in_array(substr($str,0,1),array('(','$'))) {
if(!in_array(substr($str,0,1),array('(','$','\'','"'))) {
if(preg_match('/^([^\( \.]+)(\(| \.)/i',$str,$m)) {
$func = trim($m[1]);
if(strpos($func,'::')===false) {