summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorberdir2018-03-04 22:41:44 (GMT)
committerolstjos2018-03-04 22:41:44 (GMT)
commit92ab9d76c7cc2f4867d0f6d3e043a442a0d756af (patch)
tree0fcf148e145fb1754e61b9b62c3da590f0cea464
parent5ca9ad3c0cef0108d1797b925c2202835107cbd5 (diff)
Issue #2949151 by Berdir: $langcode is not passed to file_view() in media_wysiwyg_token_to_markup()
-rw-r--r--modules/media_wysiwyg/includes/media_wysiwyg.filter.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/media_wysiwyg/includes/media_wysiwyg.filter.inc b/modules/media_wysiwyg/includes/media_wysiwyg.filter.inc
index 1436a52..a307c2f 100644
--- a/modules/media_wysiwyg/includes/media_wysiwyg.filter.inc
+++ b/modules/media_wysiwyg/includes/media_wysiwyg.filter.inc
@@ -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