G5/g5-content-management-system — pull request #454 by variousred (2014-09-23 18:27:39+00:00)
Title: Default host

sets default host for useful console debugging. the default host will be overwritten when there is an actual request that is different, but when trying to serialize things in the console without a real request proves problematic with no host, it blows up trying to generate preview urls.

returns an empty array instead of nil if there are no widgets in one of the convenience methods, so the serialize wont blow up on trying to iterate over nil.