Skip to content
Snippets Groups Projects
Commit 522b923a authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #774218 by jhedstrom: the RDFa markup for custom image field is invalid.

parent 99ec176a
No related branches found
No related tags found
No related merge requests found
......@@ -548,7 +548,7 @@ function rdf_preprocess_field(&$variables) {
// the file. We correct this by adding a resource attribute to the div if
// this field has a URI.
if (isset($item['uri'])) {
if (isset($element[$delta]['#image_style'])) {
if (!empty($element[$delta]['#image_style'])) {
$variables['item_attributes_array'][$delta]['resource'] = image_style_url($element[$delta]['#image_style'], $item['uri']);
}
else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment