When the application renders the template, it injects the template parameters into the JDocument instance. However, only JDocumentHtml actually stores a parameters reference. Since our templates are in scope of JDocument (aside from the error.php layout all of them are in scope of JDocumentHtml), the template should reference the injected parameters instead of issuing another call to JFactory to fetch the data. By doing so, this breaks parameter injection by not using the injected data.
Testing Instructions
The Beez3 template should continue to work with its configured parameters.
Documentation Changes Required
It should be made clear what data is made available when a template file is included in the scope of JDocumentHtml and the examples updated to support this practice.
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11825.