Closed (fixed)
Project:
PhotoSwipe - Responsive JavaScript Modal Image Gallery
Version:
8.x-1.0-beta3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Nov 2017 at 09:00 UTC
Updated:
4 May 2018 at 20:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
fabian.marz commentedComment #3
fabian.marz commentedComment #4
agoradesign commentedDon't think that an OR is correct because it will fix non admin pages of course but on the other side will load it also on admin pages, which wouldn't make sense to me.
I believe the correct solution is to negate the $is_admin:
if (\Drupal::config('photoswipe.settings')->get('photoswipe_always_load_non_admin') && $!is_admin)Comment #5
workplaysleep commented@agoradesign correct, and the new patch (so an can refer from my composer.json) a new dev release with multiple patches would do no harm
Comment #6
fabian.marz commentedOk. I didn't know if was the intention to load the script on admin as well. But you're right. Doesn't make much sense to me neither. Thanks for adding a new patch!
Comment #8
sunThanks for reporting, testing, and contributing! Committed to 8.x-1.x.