Commit 2344a77a authored by git's avatar git Committed by Maicol Lopez Mora
Browse files

Issue #3147602 by Project Update Bot: Automated Drupal 9 compatibility fixes

parent 5d914207
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -581,14 +581,14 @@ class FotoramaGalleryFormatter extends ImageFormatter {

      $url = $image_style ? $image_style->buildUrl($image_uri) : file_create_url($image_uri);

      $image_url = URL::fromUri($url);
      $image_url = Url::fromUri($url);

      $attributes = [];

      // Generate Thumbs.
      if ($thumbs) {
        $thumb_uri = $thumb_style->buildUrl($image_uri);
        $thumb_url = URL::fromUri($thumb_uri)->toString();
        $thumb_url = Url::fromUri($thumb_uri)->toString();
        $attributes['data-thumb'] = $thumb_url;
      }