From: Tim Otten Date: Fri, 27 Mar 2015 03:05:58 +0000 (-0700) Subject: CRM-16173 - Rename createCACert() to getCACert(). X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=13afc1a966a13f1a1762ad822b57f3ac2d63fbbe;p=civicrm-core.git CRM-16173 - Rename createCACert() to getCACert(). --- diff --git a/CRM/Cxn/BAO/Cxn.php b/CRM/Cxn/BAO/Cxn.php index 434ffa0561..7e28772b12 100644 --- a/CRM/Cxn/BAO/Cxn.php +++ b/CRM/Cxn/BAO/Cxn.php @@ -85,7 +85,7 @@ class CRM_Cxn_BAO_Cxn extends CRM_Cxn_DAO_Cxn { * The PEM-encoded root certificate. NULL if verification is disabled. * @throws CRM_Core_Exception */ - public static function createCACert() { + public static function getCACert() { if (!defined('CIVICRM_CXN_CA') || CIVICRM_CXN_CA === 'CiviRootCA') { $file = Constants::getCert(); } @@ -128,7 +128,7 @@ class CRM_Cxn_BAO_Cxn extends CRM_Cxn_DAO_Cxn { public static function createRegistrationClient() { $cxnStore = new \CRM_Cxn_CiviCxnStore(); - $client = new \Civi\Cxn\Rpc\RegistrationClient(self::createCACert(), $cxnStore, \CRM_Cxn_BAO_Cxn::getSiteCallbackUrl()); + $client = new \Civi\Cxn\Rpc\RegistrationClient(self::getCACert(), $cxnStore, \CRM_Cxn_BAO_Cxn::getSiteCallbackUrl()); $client->setLog(new \CRM_Utils_SystemLogger()); return $client; }