Jaxel
Well-known member
Am I right in assuming this is all I need in
Setup.php
to require XF2.1 to install/upgrade an addon?
Code:
public function checkRequirements(&$errors = [], &$warnings = [])
{
if(\XF::options()->currentVersionId >= '2010032')
{
$errors[] = 'XenForo 2.1 required to install/upgrade this addon';
}
return $errors;
}