Skip to content

Commit

Permalink
Merge pull request #285 from colemanw/renameMailingBAO
Browse files Browse the repository at this point in the history
CiviMail - BAO files were renamed in core
  • Loading branch information
kcristiano authored Nov 26, 2022
2 parents 8d2fbd2 + 476ee36 commit 21fc67c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wp-rest/Controller/Open.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function get_item($request) {
$queue_id = $request->get_param('q');

// Track open.
\CRM_Mailing_Event_BAO_Opened::open($queue_id);
\CRM_Mailing_Event_BAO_MailingEventOpened::open($queue_id);

// Serve tracker file.
add_filter('rest_pre_serve_request', [$this, 'serve_tracker_file'], 10, 4);
Expand Down
2 changes: 1 addition & 1 deletion wp-rest/Controller/Url.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function get_item($request) {
$params = apply_filters('civi_wp_rest/controller/url/params', $this->get_formatted_params($request), $request);

// Track URL.
$url = \CRM_Mailing_Event_BAO_TrackableURLOpen::track($params['queue_id'], $params['url_id']);
$url = \CRM_Mailing_Event_BAO_MailingEventClickThrough::track($params['queue_id'], $params['url_id']);

/**
* Filter URL.
Expand Down

0 comments on commit 21fc67c

Please sign in to comment.