sparkpost_civicrm_check: correct version check function (critical for 5.0)
Created by: mlutfy
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()
.