Index: trunk/core/kernel/application.php =================================================================== diff -u -r4782 -r4790 --- trunk/core/kernel/application.php (.../application.php) (revision 4782) +++ trunk/core/kernel/application.php (.../application.php) (revision 4790) @@ -138,6 +138,9 @@ var $Application = null; + var $CompilationCache = array(); //used when compiling templates + var $CachedProcessors = array(); //used when running compiled templates + /** * Returns kApplication instance anywhere in the script. * @@ -337,10 +340,14 @@ } $this->SetVar('lang.current_id', $language_id ); $this->SetVar('m_lang', $language_id ); + + $lang_mode = $this->GetVar('lang_mode'); + $this->SetVar('lang_mode', ''); $lang =& $this->recallObject('lang.current'); if ( !$lang->IsLoaded() || (!$this->Application->IsAdmin() && !$lang->GetDBField('Enabled')) ) { if (!defined('IS_INSTALL')) die ('Unknown or disabled language'); } + $this->SetVar('lang_mode',$lang_mode); } /** @@ -2095,6 +2102,16 @@ } } + function CheckProcessors($processors) + { + foreach ($processors as $a_processor) + { + if (!isset($this->CachedProcessors[$a_processor])) { + $this->CachedProcessors[$a_processor] =& $this->recallObject($a_processor.'_TagProcessor'); + } + } + } + } ?> \ No newline at end of file