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
72a863db
Commit
72a863db
authored
Aug 01, 2017
by
weborion
Committed by
olstjos
Aug 01, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2894830
by weborion: Unable to render media from nid:******. Error: No file Id
parent
6331458e
Changes
1
Hide 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 @
72a863db
...
...
@@ -455,7 +455,7 @@ function _media_wysiwyg_generate_tagMap($text) {
// between function calls. Since media_process_form is multiple times
// with same form, this function is also called multiple times.
static
$tagmap
=
array
();
preg_match_all
(
"/\[\[.*?\]\]/s"
,
$text
,
$matches
,
PREG_SET_ORDER
);
preg_match_all
(
"/\[\[
(?!nid:)
.*?\]\]/s"
,
$text
,
$matches
,
PREG_SET_ORDER
);
foreach
(
$matches
as
$match
)
{
// We see if tagContent is already in $tagMap, if not we add it
// to $tagmap. If we return an empty array, we break embeddings of the same
...
...
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