Skip to content

Commit

Permalink
CRM-19690 - Enable FlexMailer (if present) - Fixup for v4.6
Browse files Browse the repository at this point in the history
  • Loading branch information
totten committed Jan 5, 2017
1 parent 011b368 commit c043e33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Mailing/BAO/MailingJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ public function queue($testParams = NULL) {
* @return void
*/
public function deliver(&$mailer, $testParams = NULL) {
if (\Civi::settings()->get('experimentalFlexMailerEngine')) {
if (CRM_Core_BAO_Setting::getItem('Mailing Preferences', 'experimentalFlexMailerEngine')) {
throw new \RuntimeException("Cannot use legacy deliver() when experimentalFlexMailerEngine is enabled");
}

Expand Down

0 comments on commit c043e33

Please sign in to comment.