Commit 92ab9d76 authored by Berdir's avatar Berdir Committed by joseph.olstad

Issue #2949151 by Berdir: $langcode is not passed to file_view() in media_wysiwyg_token_to_markup()

parent 5ca9ad3c
......@@ -323,7 +323,7 @@ function media_wysiwyg_token_to_markup($match, $wysiwyg = FALSE, $langcode = NUL
$element = array();
// Render the file entity, for sites using the file_entity rendering method.
if (variable_get('media_wysiwyg_default_render', 'file_entity') == 'file_entity') {
$element['content'] = file_view($file, $tag_info['view_mode']);
$element['content'] = file_view($file, $tag_info['view_mode'], $langcode);
}
$element['content']['file'] = media_wysiwyg_get_file_without_label($file, $tag_info['view_mode'], $settings, $langcode);
// Overwrite or set the file #alt attribute if it has been set in this
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment