Skip to content
Snippets Groups Projects
Verified Commit 74c7da92 authored by Andrei Mondoc's avatar Andrei Mondoc Committed by Kevin Cristiano
Browse files

cache the hooked url value

parent 2cedf6e5
No related branches found
No related tags found
No related merge requests found
......@@ -73,7 +73,6 @@ class CRM_Mailing_BAO_TrackableURL extends CRM_Mailing_DAO_TrackableURL {
else {
$hrefExists = FALSE;
$config = CRM_Core_Config::singleton();
$tracker = new CRM_Mailing_BAO_TrackableURL();
if (preg_match('/^href/i', $url)) {
......@@ -89,7 +88,7 @@ class CRM_Mailing_BAO_TrackableURL extends CRM_Mailing_DAO_TrackableURL {
}
$id = $tracker->id;
$redirect = $config->userFrameworkResourceURL . "extern/url.php?u=$id";
$redirect = CRM_Utils_System::externUrl('extern/url', "u=$id");
$urlCache[$mailing_id . $url] = $redirect;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment