diff --git a/core/modules/image/image.field.inc b/core/modules/image/image.field.inc index ad97682..5c86c7d 100644 --- a/core/modules/image/image.field.inc +++ b/core/modules/image/image.field.inc @@ -439,12 +439,12 @@ function template_preprocess_image_formatter(&$variables) { $variables['image'] = array( '#theme' => !empty($variables['image_style']) ? 'image_style' : 'image', '#style_name' => !empty($variables['image_style']) ?: NULL, - '#uri' => isset($item['uri']) ?: NULL, - '#width' => isset($item['width']) ?: NULL, - '#height' => isset($item['height']) ?: NULL, - '#alt' => isset($item['alt']) ?: NULL, - '#title' => isset($item['title']) ?: NULL, - '#attributes' => isset($item['attributes']) ?: NULL, + '#uri' => isset($item['uri']) ? $item['uri'] : NULL, + '#width' => isset($item['width']) ? $item['width']: NULL, + '#height' => isset($item['height']) ? $item['height']: NULL, + '#alt' => isset($item['alt']) ? $item['alt']: NULL, + '#title' => isset($item['title']) ? $item['title']: NULL, + '#attributes' => isset($item['attributes']) ? $item['attributes']: NULL, ); // The link path and link options are both optional, but for the options to be diff --git a/core/modules/image/image.module b/core/modules/image/image.module index 2a85480..fe0b6f2 100644 --- a/core/modules/image/image.module +++ b/core/modules/image/image.module @@ -259,6 +259,7 @@ function image_theme() { ), 'image_formatter' => array( 'variables' => array('item' => NULL, 'path' => NULL, 'image_style' => NULL), + 'file' => 'image.field.inc', 'template' => 'image-formatter', ), );