mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
cond, loop 등 템플릿 코드가 컴파일 되지 않고 출력되는 문제
- xpressengine/xe-core#2237 - 일부 해결됨을 확인하였으나, 다양한 환경에서 문제가 여전히 나타날 수 있음
This commit is contained in:
parent
adb93006b4
commit
a6e9222fac
1 changed files with 2 additions and 2 deletions
|
|
@ -32,6 +32,7 @@ class TemplateHandler
|
|||
*/
|
||||
public function __construct()
|
||||
{
|
||||
ini_set('pcre.jit', false);
|
||||
$this->config = new stdClass;
|
||||
$this->handler_mtime = filemtime(__FILE__);
|
||||
$this->user = Rhymix\Framework\Session::getMemberInfo() ?: new Rhymix\Framework\Helpers\SessionHelper;
|
||||
|
|
@ -418,8 +419,7 @@ class TemplateHandler
|
|||
*/
|
||||
private function _parseInline($buff)
|
||||
{
|
||||
preg_match_all('/<([a-zA-Z]+\d?)(?>(?!<[a-z]+\d?[\s>]).)*?(?:[ \|]cond| loop)="/s', $buff, $match);
|
||||
if(empty($match))
|
||||
if(!preg_match_all('/<([a-zA-Z]+\d?)(?:\s)/', $buff, $match))
|
||||
{
|
||||
return $buff;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue