From 013e44b24eecbc3e44cf315aaddba0863c8786d6 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sat, 13 Apr 2013 13:27:38 -0700 Subject: [PATCH] Code cleanup --- CRM/UF/Page/Group.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/CRM/UF/Page/Group.php b/CRM/UF/Page/Group.php index ed61a2c5d8..d3515ee31a 100644 --- a/CRM/UF/Page/Group.php +++ b/CRM/UF/Page/Group.php @@ -240,10 +240,8 @@ class CRM_UF_Page_Group extends CRM_Core_Page { if ($config->userFramework == 'Joomla') { $profile = str_replace('/administrator/', '/index.php', $profile); } - else { - if ($config->userFramework == 'WordPress') { - $profile = str_replace('/wp-admin/admin.php', '/index.php', $profile); - } + elseif ($config->userFramework == 'WordPress') { + $profile = str_replace('/wp-admin/admin.php', '/index.php', $profile); } // add jquery files -- 2.25.1