• 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?

Jaxel

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

Code:
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?