Index: trunk/core/kernel/languages/phrases_cache.php =================================================================== diff -u -N -r2720 -r3162 --- trunk/core/kernel/languages/phrases_cache.php (.../phrases_cache.php) (revision 2720) +++ trunk/core/kernel/languages/phrases_cache.php (.../phrases_cache.php) (revision 3162) @@ -18,16 +18,18 @@ var $fromTag = false; - function PhrasesCache($LanguageId=1) + function PhrasesCache() { parent::kBase(); $this->Conn =& $this->Application->GetADODBConnection(); - - $this->Phrases = Array(); - $this->LanguageId = $LanguageId; - $this->LoadPhrases( $this->GetCachedIds() ); } + function Init($prefix, $special = '') + { + $this->LanguageId = $this->Application->GetVar('m_lang'); + $this->LoadPhrases( $this->GetCachedIds() ); + } + function GetCachedIds() { $query = sprintf("SELECT PhraseList FROM %s WHERE Template = %s",