Closed mlutfy closed 6 years ago
@mlutfy Is this going to break compatibility with previous versions? This extension is indicated as compatible all the way back to 4.4.
@nganivet CRM_Utils_System::version()
also exists in 4.4 and works in the same/equivalent way as in 4.7 / 5.0.
@mlutfy Thanks, merged.
In 5.0, the global function
checkVersion()
cannot be called anymore, or at least, the template is not always loaded, so the function is not defined.When accessing the CiviCRM dashboard, I had a fatal error:
Error: Call to undefined function civicrmVersion() in sparkpost_civicrm_check() (line 171 of sparkpost.php)
.This PR replaces it by
CRM_Utils_System::version()
.