Mercurial > hg > cmmr2012-drupal-site
diff core/modules/image/image.field.inc @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | c75dbcec494b |
children |
line wrap: on
line diff
--- a/core/modules/image/image.field.inc Thu Feb 28 11:14:44 2019 +0000 +++ b/core/modules/image/image.field.inc Thu Feb 28 13:11:55 2019 +0000 @@ -5,7 +5,6 @@ * Implement an image field, based on the file module's file field. */ -use Drupal\Component\Utility\Unicode; use Drupal\Core\Render\Element; /** @@ -64,7 +63,7 @@ $item = $variables['item']; // Do not output an empty 'title' attribute. - if (Unicode::strlen($item->title) != 0) { + if (mb_strlen($item->title) != 0) { $variables['image']['#title'] = $item->title; }