Index: branches/5.2.x/core/kernel/languages/phrases_cache.php =================================================================== diff -u -N -r13840 -r14095 --- branches/5.2.x/core/kernel/languages/phrases_cache.php (.../phrases_cache.php) (revision 13840) +++ branches/5.2.x/core/kernel/languages/phrases_cache.php (.../phrases_cache.php) (revision 14095) @@ -1,6 +1,6 @@ Conn =& $this->Application->GetADODBConnection(); - } - /** * Sets phrase editing mode, that corresponds current editing mode * @@ -136,9 +122,18 @@ } } - function Init($prefix, $special = '') + /** + * Loads phrases from current language + * Method is called manually (not from kFactory class) too + * + * @param string $prefix + * @param string $special + */ + public function Init($prefix, $special = '') { - if (constOn('IS_INSTALL')) { + parent::Init($prefix, $special); + + if (kUtil::constOn('IS_INSTALL')) { $this->LanguageId = 1; } else {