Skip to content
Snippets Groups Projects
Commit e275e7a0 authored by Vasile Chindris's avatar Vasile Chindris Committed by Eric Goodwin
Browse files

Issue #2634140 by vasi1186: Fatal error when no popup image style is defined

parent 7e580b9a
No related branches found
Tags 8.x-1.1
No related merge requests found
......@@ -100,7 +100,7 @@ class MagnificPopup extends ImageFormatterBase {
foreach ($files as $delta => $file) {
$image_uri = $file->getFileUri();
$popup_image_path = ImageStyle::load($popup_image_style)->buildUrl($image_uri);
$popup_image_path = !empty($popup_image_style) ? ImageStyle::load($popup_image_style)->buildUrl($image_uri) : $image_uri;
// Depending on the outcome of https://www.drupal.org/node/2622586,
// Either a class will need to be added to the $url object,
// Or a custom theme function might be needed to do so.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment