From 13afc1a966a13f1a1762ad822b57f3ac2d63fbbe Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Thu, 26 Mar 2015 20:05:58 -0700 Subject: [PATCH] CRM-16173 - Rename createCACert() to getCACert(). --- CRM/Cxn/BAO/Cxn.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.25.1