• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

How to check for current version of XenForo?


Well-known member
I am using the following code in XenPorta to check for pre-installed versions.

public static function installCode($existingAddOn, $addOnData)
    if ($existingAddOn['version_id'] < 50)
        throw new XenForo_Exception('Old version found and must be uninstalled first', true);
How would I find similar data for the current version of XenForo?