updated for XenForo 1.2.0 compatibility