Silverstripe 3.1 Compatibility

Updated module for 3.1 compatibility