Commit 10e2f48b authored by totten's avatar totten

CRM-16373 - Config - Remove `civiVersion` property

Only used once in the entire codebase, and it can be fetched
directly (without any weird statefulness).
parent 022394b0
......@@ -78,9 +78,6 @@ class CRM_Core_BAO_ConfigSetting {
// also add the version number for use by template / js etc
$params['civiVersion'] = CRM_Utils_System::version();
$domain = new CRM_Core_DAO_Domain();
$domain->id = CRM_Core_Config::domainID();
......@@ -264,7 +264,7 @@ class CRM_Extension_Browser {
$config = CRM_Core_Config::singleton();
CRM_Core_Session::setStatus(ts('There are currently no extensions on the CiviCRM public extension directory which are compatible with version %2 (<a href="%1">requested extensions from here</a>). If you want to install an extension which is not marked as compatible, you may be able to <a href="%3">download and install extensions manually</a> (depending on access to your web server).<br />', array(
1 => $this->getRepositoryUrl(),
2 => $config->civiVersion,
2 => CRM_Utils_System::version(),
3 => '',
)), ts('No Extensions Available for this Version'), 'info');
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment