Created
July 23, 2012 07:35
-
-
Save henare/3162434 to your computer and use it in GitHub Desktop.
Patch for fixing CiviCRM Wordpress URLs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/civicrm/CRM/Utils/System/WordPress.php | |
+++ b/civicrm/CRM/Utils/System/WordPress.php | |
@@ -227,10 +227,10 @@ class CRM_Utils_System_WordPress extends CRM_Utils_System_Base { | |
} | |
else { | |
if (isset($query)) { | |
- return $base . '?page=CiviCRM&q=' . $path . $pageID . $separator . $query . $fragment; | |
+ return $script . '?page=CiviCRM&q=' . $path . $pageID . $separator . $query . $fragment; | |
} | |
else { | |
- return $base . '?page=CiviCRM&q=' . $path . $pageID . $fragment; | |
+ return $script . '?page=CiviCRM&q=' . $path . $pageID . $fragment; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment