joomla/joomla-platform — pull request #1550 by pasamio (2012-09-26 22:52:01+00:00)
Title: Update JRegistry::def to support not string defaults.

This updates the behaviour of JRegistry::def so that it doesn't type cast the default value to a string but leaves it alone consistent with JRegistry::set's behaviour. This allows you to specify a default value that utilises an array of an object.