Index: trunk/core/kernel/parser/template_parser.php =================================================================== diff -u -r1560 -r1731 --- trunk/core/kernel/parser/template_parser.php (.../template_parser.php) (revision 1560) +++ trunk/core/kernel/parser/template_parser.php (.../template_parser.php) (revision 1731) @@ -313,15 +313,15 @@ } } - function Parse($template, $name='unknown') + function Parse($template, $name='unknown', $pre_parse = 1) { $this->Template = $template; $this->TemplateName = $name; $this->Position = 0; $this->Output = ''; $this->TagHolder = new MyTagHolder(); - if (defined('EXPERIMENTAL_PRE_PARSE')) { + if (defined('EXPERIMENTAL_PRE_PARSE') && $pre_parse) { $template_cache =& $this->Application->recallObject('TemplatesCache'); $fname = $template_cache->GetRealFilename($this->TemplateName).'.php'; $tname = $template_cache->GetRealFilename($this->TemplateName).'.tpl'; @@ -369,7 +369,7 @@ } - if (defined('EXPERIMENTAL_PRE_PARSE')) { + if (defined('EXPERIMENTAL_PRE_PARSE') && $pre_parse) { // $this->CompiledBuffer .= 'echo $o;'."\n"; $this->CompiledBuffer .= '?'.'>'."\n";