Updated to work with XenForo 1.2 RC2.