Code cleanup
authorColeman Watts <coleman@civicrm.org>
Sat, 13 Apr 2013 20:27:38 +0000 (13:27 -0700)
committerColeman Watts <coleman@civicrm.org>
Sat, 13 Apr 2013 20:28:14 +0000 (13:28 -0700)
CRM/UF/Page/Group.php

index ed61a2c5d8b1a074cd8478b846c8b5bfa53b1001..d3515ee31a423129c58e8d8a9538d4a2c93eff0b 100644 (file)
@@ -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