concrete5/concrete5 — pull request #1046 by Shotster (2013-05-16 23:24:52+00:00)
Title: Fix getGlobalBlocks() to retrieve only global areas used by the collection

Rewritten DB query fixes the outputAutoHeaderItems() issue for global areas. With this fix, only global blocks used on the page are retrieved, and so only the necessary JS and CSS resources are auto-loaded.