fix undefined $gallery_template issue
Merge pull request #425 from Ritesh-patel/master

fix undefined $gallery_template issue