Skip to content

Commit

Permalink
Merge pull request #29153 from eileenmcnaughton/sms_clean
Browse files Browse the repository at this point in the history
Remove non-sms parts from SMS class
  • Loading branch information
colemanw authored Jan 30, 2024
2 parents fc89435 + d136934 commit e215c01
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions CRM/Mailing/BAO/SMSJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ public function deliver($unused, $isTest) {
$isTest = !empty($isTest);
$mailingID = $this->mailing_id;
$mailer = CRM_SMS_Provider::singleton(['mailing_id' => $mailingID]);
if (\Civi::settings()->get('experimentalFlexMailerEngine')) {
throw new \RuntimeException("Cannot use legacy deliver() when experimentalFlexMailerEngine is enabled");
}

$mailing = new CRM_Mailing_BAO_Mailing();
$mailing->id = $this->mailing_id;
Expand All @@ -46,12 +43,12 @@ public function deliver($unused, $isTest) {
$mailing->subject = ts('[CiviMail Draft]') . ' ' . $mailing->subject;
}

CRM_Mailing_BAO_Mailing::tokenReplace($mailing);

// get and format attachments
$attachments = CRM_Core_BAO_File::getEntityFile('civicrm_mailing', $mailing->id);

if (defined('CIVICRM_MAIL_SMARTY') && CIVICRM_MAIL_SMARTY) {
// This is probably a hang over from when Civi was not probably initialised.
// It is not relevant once we are off Smarty 2.
CRM_Core_Smarty::registerStringResource();
}

Expand Down

0 comments on commit e215c01

Please sign in to comment.