open-lms-open-source / moodle-mod_lightboxgallery

Lightbox Gallery resource module for Moodle 2.0
GNU General Public License v3.0
30 stars 37 forks source link

Remove redundant / from the thumnail URL #79

Closed alendit closed 7 years ago

alendit commented 7 years ago

Since the file path starts with a slash having gallery_thumbs/0'.$this->storedfile->get_filepath() leads to a double slash in the URL. Starting with Moodle 3.3 (or depending on the config even earlier) it leads to errors which cause the thumbnails to not to be displayed.

This simple change fixes the issue.

aolley commented 7 years ago

Hmm, they actually display on 3.3 without the patch. I'm guessing it also depends on your webserver setup a bit.