Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
magnific_popup-3401519
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
magnific_popup-3401519
Commits
e275e7a0
Commit
e275e7a0
authored
9 years ago
by
Vasile Chindris
Committed by
Eric Goodwin
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2634140
by vasi1186: Fatal error when no popup image style is defined
parent
7e580b9a
No related branches found
Branches containing commit
Tags
8.x-1.1
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Plugin/Field/FieldFormatter/MagnificPopup.php
+1
-1
1 addition, 1 deletion
src/Plugin/Field/FieldFormatter/MagnificPopup.php
with
1 addition
and
1 deletion
src/Plugin/Field/FieldFormatter/MagnificPopup.php
+
1
−
1
View file @
e275e7a0
...
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment