Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
photoswipe-3232070
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
photoswipe-3232070
Commits
0a5f8acc
Commit
0a5f8acc
authored
8 years ago
by
Paris Liakos
Browse files
Options
Downloads
Patches
Plain Diff
Fix variable name in PhotoswipeAssetsManager::attach()
parent
591547da
No related branches found
Branches containing commit
Tags
7.x-1.0-alpha4
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/PhotoswipeAssetsManager.php
+3
-3
3 additions, 3 deletions
src/PhotoswipeAssetsManager.php
with
3 additions
and
3 deletions
src/PhotoswipeAssetsManager.php
+
3
−
3
View file @
0a5f8acc
...
...
@@ -40,12 +40,12 @@ class PhotoswipeAssetsManager implements PhotoswipeAssetsManagerInterface {
// We only need to load only once per pace.
if
(
!
$this
->
attached
)
{
// Add the library of Photoswipe assets
$
attach
ment
s
[
'#attached'
][
'library'
][]
=
'photoswipe/photoswipe'
;
$
ele
ment
[
'#attached'
][
'library'
][]
=
'photoswipe/photoswipe'
;
// Load initialization file
$
attach
ment
s
[
'#attached'
][
'library'
][]
=
'photoswipe/photoswipe.init'
;
$
ele
ment
[
'#attached'
][
'library'
][]
=
'photoswipe/photoswipe.init'
;
// Add photoswipe js settings.
$
attach
ment
s
[
'#attached'
][
'drupalSettings'
][
'photoswipe'
][
'options'
]
=
$this
->
config
->
get
(
'options'
);
$
ele
ment
[
'#attached'
][
'drupalSettings'
][
'photoswipe'
][
'options'
]
=
$this
->
config
->
get
(
'options'
);
$this
->
attached
=
TRUE
;
}
...
...
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