Index: branches/5.2.x/core/units/languages/languages_tag_processor.php =================================================================== diff -u -N -r15152 -r15445 --- branches/5.2.x/core/units/languages/languages_tag_processor.php (.../languages_tag_processor.php) (revision 15152) +++ branches/5.2.x/core/units/languages/languages_tag_processor.php (.../languages_tag_processor.php) (revision 15445) @@ -1,6 +1,6 @@ Application->GetVar('phrases_label'); + $content_type = isset($params['content_type']) ? $params['content_type'] : 'text/html'; + $include_charset = isset($params['include_charset']) ? $params['include_charset'] : null; - $top_prefix = $this->Application->GetTopmostPrefix($this->Prefix); - if( substr($this->Application->GetVar($top_prefix.'_mode'), 0, 1) == 't' && !$edit_direct ) - { - $object = $this->getObject($params); - /* @var $object kDBItem */ + $this->Application->setContentType($content_type, $include_charset); - return $object->GetDBField('Charset'); - } - - $lang_current = $this->Application->recallObject('lang.current'); - /* @var $lang_current LanguagesItem */ - - return $lang_current->GetDBField('Charset'); + return ''; } /**