compatibility fix for XenForo 2.2.12 and above NOTE: use this version only if you've updated your XenForo installation to version 2.2.12