|
|
|
@ -583,7 +583,8 @@ class cls_template |
|
|
|
{ |
|
|
|
if (strrpos($val, '[') !== false) |
|
|
|
{ |
|
|
|
$val = preg_replace("/\[([^\[\]]*)\]/eis", "'.'.str_replace('$','\$','\\1')", $val); |
|
|
|
//$val = preg_replace("/\[([^\[\]]*)\]/eis", "'.'.str_replace('$','\$','\\1')", $val); |
|
|
|
$val = preg_replace_callback('/\[([^\[\]]*)\]/is',function ($matches) {return '.'.str_replace('$','\$',$matches[1]);},$val); |
|
|
|
} |
|
|
|
|
|
|
|
if (strrpos($val, '|') !== false) |
|
|
|
|