From 96e82f8f473569dc3854653be77f837c5ba77320 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Fri, 6 Nov 2015 14:17:04 -0500 Subject: [PATCH] CRM-17323 - Fix site registration links --- CRM/Admin/Page/Admin.php | 2 ++ CRM/Admin/Page/ConfigTaskList.php | 2 ++ templates/CRM/Admin/Page/Admin.tpl | 2 +- templates/CRM/Admin/Page/ConfigTaskList.tpl | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CRM/Admin/Page/Admin.php b/CRM/Admin/Page/Admin.php index 10abe03f88..3b29c3f559 100644 --- a/CRM/Admin/Page/Admin.php +++ b/CRM/Admin/Page/Admin.php @@ -57,6 +57,8 @@ class CRM_Admin_Page_Admin extends CRM_Core_Page { CRM_Core_Session::setStatus($errorMessage, ts('Warning'), "alert", array('expires' => 0)); } + $this->assign('registerSite', htmlspecialchars('https://civicrm.org/register-your-site?src=iam&sid=' . CRM_Utils_System::getSiteID())); + $groups = array( 'Customize Data and Screens' => ts('Customize Data and Screens'), 'Communications' => ts('Communications'), diff --git a/CRM/Admin/Page/ConfigTaskList.php b/CRM/Admin/Page/ConfigTaskList.php index 6491152c6d..e1a85796dc 100644 --- a/CRM/Admin/Page/ConfigTaskList.php +++ b/CRM/Admin/Page/ConfigTaskList.php @@ -53,6 +53,8 @@ class CRM_Admin_Page_ConfigTaskList extends CRM_Core_Page { $destination = urlencode($destination); $this->assign('destination', $destination); + $this->assign('registerSite', htmlspecialchars('https://civicrm.org/register-your-site?src=iam&sid=' . CRM_Utils_System::getSiteID())); + return parent::run(); } diff --git a/templates/CRM/Admin/Page/Admin.tpl b/templates/CRM/Admin/Page/Admin.tpl index 4f5272c5f9..8954e5ff22 100644 --- a/templates/CRM/Admin/Page/Admin.tpl +++ b/templates/CRM/Admin/Page/Admin.tpl @@ -28,7 +28,7 @@
+ {ts 1='{$registerSite}'}Have you registered this site at CiviCRM.org? If not, please help strengthen the CiviCRM ecosystem by taking a few minutes to fill out the site registration form. The information collected will help us prioritize improvements, target our communications and build the community. If you have a technical role for this site, be sure to check "Keep in Touch" to receive technical updates (a low volume mailing list).{/ts}
- {ts 1='https://civicrm.org/register-site'}Have you registered this site at CiviCRM.org? If not, please help strengthen the CiviCRM ecosystem by taking a few minutes to fill out the site registration form. The information collected will help us prioritize improvements, target our communications and build the community. If you have a technical role for this site, be sure to check "Keep in Touch" to receive technical updates (a low volume mailing list).{/ts}
diff --git a/templates/CRM/Admin/Page/ConfigTaskList.tpl b/templates/CRM/Admin/Page/ConfigTaskList.tpl index b5eb0116d6..7a00d4e1a3 100644 --- a/templates/CRM/Admin/Page/ConfigTaskList.tpl +++ b/templates/CRM/Admin/Page/ConfigTaskList.tpl @@ -47,7 +47,7 @@ {ts}Enable the required CiviCRM components.(CiviContribute, CiviEvent etc.){/ts} - {ts}Register your site{/ts} + {ts}Register your site{/ts} {ts}Register your site, join the community, and help CiviCRM remain a leading CRM for organizations worldwide.{/ts} -- 2.25.1