From 437a89900cb7a3f3c8c92021a530ca129e13d3f6 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Wed, 3 Jul 2013 05:36:51 -0700 Subject: [PATCH] CRM-11160 - verifySSL - Display warning next to this config option ---------------------------------------- * CRM-11160: http://issues.civicrm.org/jira/browse/CRM-11160 --- CRM/Admin/Form/Setting/Url.php | 5 +++++ templates/CRM/Admin/Form/Setting/Url.tpl | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CRM/Admin/Form/Setting/Url.php b/CRM/Admin/Form/Setting/Url.php index b4432b05d6..9bfcffc23f 100644 --- a/CRM/Admin/Form/Setting/Url.php +++ b/CRM/Admin/Form/Setting/Url.php @@ -49,6 +49,9 @@ class CRM_Admin_Form_Setting_Url extends CRM_Admin_Form_Setting { */ public function buildQuickForm() { CRM_Utils_System::setTitle(ts('Settings - Resource URLs')); + $settingFields = civicrm_api('setting', 'getfields', array( + 'version' => 3 + )); $this->addElement('text', 'userFrameworkResourceURL', ts('CiviCRM Resource URL')); $this->addElement('text', 'imageUploadURL', ts('Image Upload URL')); @@ -56,6 +59,8 @@ class CRM_Admin_Form_Setting_Url extends CRM_Admin_Form_Setting { $this->addElement('text', 'extensionsURL', ts('Extension Resource URL')); $this->addYesNo('enableSSL', ts('Force Secure URLs (SSL)')); $this->addYesNo('verifySSL', ts('Verify SSL Certs')); + // FIXME: verifySSL should use $_settings instead of manually adding fields + $this->assign('verifySSL_description', $settingFields['values']['verifySSL']['description']); $this->addFormRule(array('CRM_Admin_Form_Setting_Url', 'formRule')); diff --git a/templates/CRM/Admin/Form/Setting/Url.tpl b/templates/CRM/Admin/Form/Setting/Url.tpl index d9d8881101..5f86f30073 100644 --- a/templates/CRM/Admin/Form/Setting/Url.tpl +++ b/templates/CRM/Admin/Form/Setting/Url.tpl @@ -74,7 +74,8 @@ {$form.verifySSL.label} - {$form.verifySSL.html} {help id='id-verify_ssl'} + {$form.verifySSL.html} {help id='id-verify_ssl'}
+

{ts}{$verifySSL_description}{/ts}

-- 2.25.1