Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
M
media
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
media
Commits
92ab9d76
Commit
92ab9d76
authored
Mar 04, 2018
by
Berdir
Committed by
joseph.olstad
Mar 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2949151
by Berdir: $langcode is not passed to file_view() in media_wysiwyg_token_to_markup()
parent
5ca9ad3c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
modules/media_wysiwyg/includes/media_wysiwyg.filter.inc
modules/media_wysiwyg/includes/media_wysiwyg.filter.inc
+1
-1
No files found.
modules/media_wysiwyg/includes/media_wysiwyg.filter.inc
View file @
92ab9d76
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment