From 6dc6c8ffe53d2bc90e98606a091b24a45fd5e662 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 17 Jun 2021 09:19:58 -0400 Subject: [PATCH] Remove unreachable code from admin page --- CRM/Admin/Page/Admin.php | 2 -- templates/CRM/Admin/Page/Admin.tpl | 10 ---------- 2 files changed, 12 deletions(-) diff --git a/CRM/Admin/Page/Admin.php b/CRM/Admin/Page/Admin.php index 8fb257635c..c110c237ab 100644 --- a/CRM/Admin/Page/Admin.php +++ b/CRM/Admin/Page/Admin.php @@ -28,8 +28,6 @@ class CRM_Admin_Page_Admin extends CRM_Core_Page { public function run() { Civi::resources()->addStyleFile('civicrm', 'css/admin.css'); - $this->assign('registerSite', htmlspecialchars('https://civicrm.org/register-your-site?src=iam&sid=' . CRM_Utils_System::getSiteID())); - $groups = [ 'Customize Data and Screens' => ts('Customize Data and Screens'), 'Communications' => ts('Communications'), diff --git a/templates/CRM/Admin/Page/Admin.tpl b/templates/CRM/Admin/Page/Admin.tpl index 8c9154b7f8..d35e1d415d 100644 --- a/templates/CRM/Admin/Page/Admin.tpl +++ b/templates/CRM/Admin/Page/Admin.tpl @@ -8,16 +8,6 @@ +--------------------------------------------------------------------+ *} {* Displays Administer CiviCRM Control Panel *} -{if $newer_civicrm_version} -
- - - -
- {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}
-
-{/if} -
{foreach from=$adminPanel key=groupName item=group}
-- 2.25.1