Merge pull request #12743 from civicrm/5.5
[civicrm-core.git] / CRM / Core / Payment / Realex.php
index 6f148380bb1cdcc966e4d4e598164cdbafe43e12..c757923468daca684c2fe0e7dab62e2158b36548 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.7                                                |
+ | CiviCRM version 5                                                  |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -150,7 +150,7 @@ class CRM_Core_Payment_Realex extends CRM_Core_Payment {
     curl_setopt($submit, CURLOPT_HTTPHEADER, array('SOAPAction: ""'));
     curl_setopt($submit, CURLOPT_RETURNTRANSFER, 1);
     curl_setopt($submit, CURLOPT_TIMEOUT, 60);
-    curl_setopt($submit, CURLOPT_SSL_VERIFYPEER, CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, 'verifySSL'));
+    curl_setopt($submit, CURLOPT_SSL_VERIFYPEER, Civi::settings()->get('verifySSL'));
     curl_setopt($submit, CURLOPT_HEADER, 0);
 
     // take caching out of the picture
@@ -296,7 +296,13 @@ class CRM_Core_Payment_Realex extends CRM_Core_Payment {
   }
 
   /**
-   *  Format the params from the form ready for sending to Realex.  Also perform some validation
+   * Format the params from the form ready for sending to Realex.
+   *
+   * Also perform some validation
+   *
+   * @param array $params
+   *
+   * @return bool
    */
   public function setRealexFields(&$params) {
     if ((int) $params['amount'] <= 0) {