How to check for current version of XenForo?

Jaxel

Well-known member
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?
 
Top Bottom