add externUrl method and civicrm_alterExternUrl hook
[civicrm-core.git] / CRM / Mailing / BAO / Mailing.php
index 9a24f8a9a821fff24f22d26346cd1a306dbd5d44..28164b65abe3587f2965ed757ebad40654f6876e 100644 (file)
@@ -1163,8 +1163,8 @@ ORDER BY   civicrm_email.is_bulkmail DESC
 
     // push the tracking url on to the html email if necessary
     if ($this->open_tracking && $html) {
-      array_push($html, "\n" . '<img src="' . $config->userFrameworkResourceURL .
-        "extern/open.php?q=$event_queue_id\" width='1' height='1' alt='' border='0'>"
+      array_push($html, "\n" . '<img src="' . CRM_Utils_System::externUrl('extern/open', "q=$event_queue_id")
+        . '" width="1" height="1" alt="" border="0">'
       );
     }