mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 04:52:14 +09:00
Add exception for {$content} in layout.html
This commit is contained in:
parent
d0addddbec
commit
f8d2c130bc
1 changed files with 4 additions and 0 deletions
|
|
@ -607,6 +607,10 @@ class TemplateHandler
|
||||||
$m[1] = $mm[1];
|
$m[1] = $mm[1];
|
||||||
$escape_option = $mm[2];
|
$escape_option = $mm[2];
|
||||||
}
|
}
|
||||||
|
elseif($m[1] === '$content' && preg_match('@/layouts/.+/layout\.html$@', $this->file))
|
||||||
|
{
|
||||||
|
$escape_option = 'noescape';
|
||||||
|
}
|
||||||
$m[1] = $this->_replaceVar($m[1]);
|
$m[1] = $this->_replaceVar($m[1]);
|
||||||
switch($escape_option)
|
switch($escape_option)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue