mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
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:
parent
2ef99d102e
commit
e27c428e91
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue