mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 15:27:42 +02:00
[ticket/15830] Move event to a more useful place
PHPBB3-15830
This commit is contained in:
@@ -325,6 +325,9 @@ class messenger
|
|||||||
'SITENAME' => htmlspecialchars_decode($config['sitename']),
|
'SITENAME' => htmlspecialchars_decode($config['sitename']),
|
||||||
));
|
));
|
||||||
|
|
||||||
|
// Parse message through template
|
||||||
|
$this->msg = trim($this->template->assign_display('body'));
|
||||||
|
|
||||||
$subject = $this->subject;
|
$subject = $this->subject;
|
||||||
$message = $this->msg;
|
$message = $this->msg;
|
||||||
$template = $this->template;
|
$template = $this->template;
|
||||||
@@ -353,9 +356,6 @@ class messenger
|
|||||||
$this->msg = $message;
|
$this->msg = $message;
|
||||||
unset($subject, $message);
|
unset($subject, $message);
|
||||||
|
|
||||||
// Parse message through template
|
|
||||||
$this->msg = trim($this->template->assign_display('body'));
|
|
||||||
|
|
||||||
// Because we use \n for newlines in the body message we need to fix line encoding errors for those admins who uploaded email template files in the wrong encoding
|
// Because we use \n for newlines in the body message we need to fix line encoding errors for those admins who uploaded email template files in the wrong encoding
|
||||||
$this->msg = str_replace("\r\n", "\n", $this->msg);
|
$this->msg = str_replace("\r\n", "\n", $this->msg);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user