joomla/joomla-platform — pull request #452 by pasamio (2011-10-21 07:37:31+00:00)
Title: Fix to check document has a setHeadData function

This adds a check to see if the current JDocument instance features a setHeadData function ahead of attempting to call it. This should fix some cases where caching is attempted with head data for document types that don't support that functionality for what ever reasons. This is potentially a bug elsewhere in the code however the platform should ignore these requests instead of blindly attempting to call a function that doesn't exist.