diff --git a/CHANGELOG.md b/CHANGELOG.md index 9515127..21f5324 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Web Puzzlers Emails Changelog +## 1.2.4 - 2022-01-18 + +### Fixed +- Issue with redactor helper (php 7.4) +- Issue with event before prep (php 7.4) + ## 1.2.3 - 2022-01-11 ### Fixed diff --git a/src/helpers/RedactorHelper.php b/src/helpers/RedactorHelper.php index 78565a6..007053b 100644 --- a/src/helpers/RedactorHelper.php +++ b/src/helpers/RedactorHelper.php @@ -57,7 +57,7 @@ public static function getRedactorSettings(?string $redactorConfigFile): array * @param string $body * @return string */ - public function serializeBody(string $body): string + public static function serializeBody(string $body): string { return preg_replace_callback( '/(href=|src=)([\'"])([^\'"\?#]*)(\?[^\'"\?#]+)?(#[^\'"\?#]+)?(?:#|%23)([\w\\\\]+)\:(\d+)(?:@(\d+))?(\:(?:transform\:)?' . HandleValidator::$handlePattern . ')?\2/', diff --git a/src/services/EmailerService.php b/src/services/EmailerService.php index 28faf23..59c656e 100644 --- a/src/services/EmailerService.php +++ b/src/services/EmailerService.php @@ -17,6 +17,8 @@ class EmailerService extends Mailer { + const EVENT_BEFORE_PREP = 'beforePrep'; + public $parentMailer; /**