Commit 701b937b authored by vadim.hirbu's avatar vadim.hirbu Committed by joseph.olstad

Issue #2226729 by vadim.hirbu: Fatal error: [] operator not supported for...

Issue #2226729 by vadim.hirbu: Fatal error: [] operator not supported for strings in media.filter.inc on line 376
parent 7d3834d8
......@@ -311,7 +311,12 @@ function media_wysiwyg_token_to_markup($match, $wysiwyg = FALSE, $langcode = NUL
drupal_add_js(array('mediaDataMap' => array($file->fid => $data)), 'setting');
$element['#attributes']['data-fid'] = $file->fid;
$element['#attributes']['data-media-element'] = '1';
$element['#attributes']['class'][] = 'media-element';
if (is_array($element['#attributes']['class'])) {
$element['#attributes']['class'][] = 'media-element';
}
else {
$element['#attributes']['class'] .= 'media-element';
}
}
else {
// Display the field elements.
......
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