projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website]
/
web
/
core
/
modules
/
image
/
image.field.inc
diff --git
a/web/core/modules/image/image.field.inc
b/web/core/modules/image/image.field.inc
index 9fcdf69116c561ee85f7b892d85d05e9b7ddac90..bf69b90442ec8759d11665a053d8de411f0bba64 100644
(file)
--- a/
web/core/modules/image/image.field.inc
+++ b/
web/core/modules/image/image.field.inc
@@
-5,7
+5,6
@@
* Implement an image field, based on the file module's file field.
*/
* Implement an image field, based on the file module's file field.
*/
-use Drupal\Component\Utility\Unicode;
use Drupal\Core\Render\Element;
/**
use Drupal\Core\Render\Element;
/**
@@
-64,7
+63,7
@@
function template_preprocess_image_formatter(&$variables) {
$item = $variables['item'];
// Do not output an empty 'title' attribute.
$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;
}
$variables['image']['#title'] = $item->title;
}