1. 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?

Discussion in 'XenForo Development Discussions' started by Jaxel, Jun 21, 2013.

  1. Jaxel

    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?
     
  2. Pereira

    Pereira Well-Known Member

Share This Page