updated for XenForo 1.2.0 compatibility
Merge pull request #1 from xfrocks/xenforo1.2_compatibility

updated for XenForo 1.2.0 compatibility