Eileen has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/387515 )

Change subject: Fix thrown exception in Omnimail.
......................................................................

Fix thrown exception in Omnimail.

The CiviCRM_API3_Exception is what the wrapper throws. The API_Exception is 
correct for api functions.

Bug: T175394
Change-Id: I253e16fab64da220e029213dd712ca27131994ab
---
M 
sites/default/civicrm/extensions/org.wikimedia.omnimail/CRM/Omnimail/Omnirecipients.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/crm 
refs/changes/15/387515/1

diff --git 
a/sites/default/civicrm/extensions/org.wikimedia.omnimail/CRM/Omnimail/Omnirecipients.php
 
b/sites/default/civicrm/extensions/org.wikimedia.omnimail/CRM/Omnimail/Omnirecipients.php
index 32b5e4f..4a0d91a 100644
--- 
a/sites/default/civicrm/extensions/org.wikimedia.omnimail/CRM/Omnimail/Omnirecipients.php
+++ 
b/sites/default/civicrm/extensions/org.wikimedia.omnimail/CRM/Omnimail/Omnirecipients.php
@@ -47,7 +47,7 @@
     }
     elseif ($startTimestamp) {
       if ($this->endTimeStamp < $startTimestamp) {
-        throw new CiviCRM_API3_Exception(ts("End timestamp: " . date('Y-m-d 
H:i:s', $this->endTimeStamp) . " is before " . "Start timestamp: " . 
date('Y-m-d H:i:s', $startTimestamp)));
+        throw new API_Exception(ts("End timestamp: " . date('Y-m-d H:i:s', 
$this->endTimeStamp) . " is before " . "Start timestamp: " . date('Y-m-d 
H:i:s', $startTimestamp)));
       }
       $request->setStartTimeStamp($startTimestamp);
       $request->setEndTimeStamp($this->endTimeStamp);

-- 
To view, visit https://gerrit.wikimedia.org/r/387515
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I253e16fab64da220e029213dd712ca27131994ab
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/crm
Gerrit-Branch: master
Gerrit-Owner: Eileen <emcnaugh...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to