Commit 9069595d authored by frjo's avatar frjo
Browse files

#983050: Image fields can be used in other places than nodes in D7, fix for...

#983050: Image fields can be used in other places than nodes in D7, fix for theme_colorbox_image_formatter().
parent 920ded5c
......@@ -35,7 +35,7 @@ function theme_colorbox_image_formatter($variables) {
if (!empty($image['alt'])) {
$image['title'] = $image['alt'];
}
else {
elseif (!empty($node)) {
$image['title'] = $node->title;
}
}
......
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