Index: branches/RC/core/units/general/helpers/themes_helper.php =================================================================== diff -u -N -r11646 -r11661 --- branches/RC/core/units/general/helpers/themes_helper.php (.../themes_helper.php) (revision 11646) +++ branches/RC/core/units/general/helpers/themes_helper.php (.../themes_helper.php) (revision 11661) @@ -193,14 +193,20 @@ */ function _getTemplateMetaInfo($template, $theme_id) { - if (!defined('DBG_NPARSER_FORCE_COMPILE')) { - $this->Application->InitParser(); - define('DBG_NPARSER_FORCE_COMPILE', 1); + static $init_made = false; + if (!$init_made) { + $this->Application->InitParser(true); + $init_made = true; } $template = 'theme:' . $this->_themeNames[$theme_id] . '/' . $template; $template_file = $this->Application->TemplatesCache->GetRealFilename($template); // ".tpl" was added before + return $this->parseTemplateMetaInfo($template_file); + } + + function parseTemplateMetaInfo($template_file) + { if (!file_exists($template_file)) { // when template without info it's placed in top category return Array ();