- Issue created by @hargobind
- Status changed to Needs review
almost 2 years ago 2:52am 1 February 2023 - πΊπΈUnited States hargobind Austin, Texas
Attached is a patch that changes how
scald_galleria_get_library_file()
searches the library directory to find *.js paths.Assuming the library path of sites/all/libraries/galleria, this new code searches the following directories in this order:
sites/all/libraries/galleria
sites/all/libraries/galleria/dist
sites/all/libraries/galleria/srcThere is also a change to the filenames passed to
glob()
, i.e.galleria*.js
instead of the oldgalleria-*.js
. Older versions of the library had filenames like "galleria-1.4.2.js", but all versions that are currently available on github.com simply use "galleria.js" or "galleria.min.js".