Skip to proccess $ sign in single quotes

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9706 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2011-10-21 07:42:05 +00:00
parent 5d797a51e4
commit 4e4eac40c5

View file

@ -555,7 +555,7 @@ class TemplateHandler {
**/
function _replaceVar($php) {
if(!strlen($php)) return '';
return preg_replace('@(?<!::|\\\\)\$([a-z]|_[a-z0-9])@i', '\$__Context->$1', $php);
return preg_replace('@(?<!::|\\\\|\')\$([a-z]|_[a-z0-9])@i', '\$__Context->$1', $php);
}
}