mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Remove unnecessary autoescape setting for template v2
This commit is contained in:
parent
936663f804
commit
bbd19c814b
1 changed files with 1 additions and 2 deletions
|
|
@ -344,8 +344,7 @@ class Template
|
|||
// Check the alternative version directive: @version(2)
|
||||
$content = preg_replace_callback('!(?<=^|\n)@version\s?\(([0-9]+)\)!', function($match) {
|
||||
$this->config->version = intval($match[1]);
|
||||
$this->config->autoescape = true;
|
||||
return sprintf('<?php $this->config->version = %s; $this->config->autoescape = true; ?>', var_export($this->config->version, true));
|
||||
return sprintf('<?php $this->config->version = %s; ?>', var_export($this->config->version, true));
|
||||
}, $content);
|
||||
|
||||
// Call a version-specific parser to convert template code into PHP.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue