What is the best practice for releasing add-ons that have a breaking change between XF 2.2 and 2.3?
Should I release a new add-on with the same name or should I have a single add-on and identify the version of XF and have logic specific to each version? If I should have a single add-on version and identify the board version, what's the easiest way to obtain the board version?
If I should have a single add-on but determine version specific code, should I do something like this?
Should I release a new add-on with the same name or should I have a single add-on and identify the version of XF and have logic specific to each version? If I should have a single add-on version and identify the board version, what's the easiest way to obtain the board version?
If I should have a single add-on but determine version specific code, should I do something like this?
PHP:
if (\XF::$versionId >2030000){
//xf 2.3 code
}else{
//xf 2.2 code
}
Last edited: