Template engine supports cond="0" statement from now.

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9561 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2011-10-11 04:30:11 +00:00
parent 2ef99d102e
commit e27c428e91

View file

@ -534,7 +534,7 @@
* @brief replace PHP variables of $ character
**/
function _replaceVar($php) {
if(!$php) return '';
if(!strlen($php)) return '';
return preg_replace('@(?<!::|\\\\)\$([a-z]|_[a-z0-9])@i', '\$__Context->$1', $php);
}
}