Download & Extend

Order of javascript altered by gallery_set_javascript

Project:Gallery
Version:6.x-1.0
Component:Code / API
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

The G2 Hybrid theme writes an inline script that sets some variables, followed immediately by a script include for a js file that will reference those variables. The handling in gallery_set_javascript results in the file include coming before the inline script when embedded in Drupal 6, resulting in script errors due to variables not being set.