diff options
author | David King <imkingdavid@gmail.com> | 2013-08-29 14:25:46 -0700 |
---|---|---|
committer | David King <imkingdavid@gmail.com> | 2013-08-29 14:25:46 -0700 |
commit | afc12906b92c2cf126fa2ff9006583d0c4ef01ec (patch) | |
tree | 0140929b3ddc902fb7f072af2425040d7a43d814 /phpBB/includes/functions_messenger.php | |
parent | dcf82d9a5ae26de462687325b4d8553e4aaca7d4 (diff) | |
parent | aae7677d71112e468b56be7e10d16f3b381fcad7 (diff) | |
download | forums-afc12906b92c2cf126fa2ff9006583d0c4ef01ec.tar forums-afc12906b92c2cf126fa2ff9006583d0c4ef01ec.tar.gz forums-afc12906b92c2cf126fa2ff9006583d0c4ef01ec.tar.bz2 forums-afc12906b92c2cf126fa2ff9006583d0c4ef01ec.tar.xz forums-afc12906b92c2cf126fa2ff9006583d0c4ef01ec.zip |
Merge remote-tracking branch 'EXreaction/ticket/11628' into develop
Diffstat (limited to 'phpBB/includes/functions_messenger.php')
-rw-r--r-- | phpBB/includes/functions_messenger.php | 33 |
1 files changed, 8 insertions, 25 deletions
diff --git a/phpBB/includes/functions_messenger.php b/phpBB/includes/functions_messenger.php index 0222a57bcc..3bfc1a44f0 100644 --- a/phpBB/includes/functions_messenger.php +++ b/phpBB/includes/functions_messenger.php @@ -21,7 +21,7 @@ if (!defined('IN_PHPBB')) */ class messenger { - var $vars, $msg, $extra_headers, $replyto, $from, $subject; + var $msg, $extra_headers, $replyto, $from, $subject; var $addresses = array(); var $mail_priority = MAIL_NORMAL_PRIORITY; @@ -53,7 +53,7 @@ class messenger function reset() { $this->addresses = $this->extra_headers = array(); - $this->vars = $this->msg = $this->replyto = $this->from = ''; + $this->msg = $this->replyto = $this->from = ''; $this->mail_priority = MAIL_NORMAL_PRIORITY; } @@ -258,8 +258,6 @@ class messenger 'body' => $template_file . '.txt', )); - $this->vars = $this->template->get_template_vars(); - return true; } @@ -288,26 +286,11 @@ class messenger global $config, $user; // We add some standard variables we always use, no need to specify them always - if (!isset($this->vars['U_BOARD'])) - { - $this->assign_vars(array( - 'U_BOARD' => generate_board_url(), - )); - } - - if (!isset($this->vars['EMAIL_SIG'])) - { - $this->assign_vars(array( - 'EMAIL_SIG' => str_replace('<br />', "\n", "-- \n" . htmlspecialchars_decode($config['board_email_sig'])), - )); - } - - if (!isset($this->vars['SITENAME'])) - { - $this->assign_vars(array( - 'SITENAME' => htmlspecialchars_decode($config['sitename']), - )); - } + $this->assign_vars(array( + 'U_BOARD' => generate_board_url(), + 'EMAIL_SIG' => str_replace('<br />', "\n", "-- \n" . htmlspecialchars_decode($config['board_email_sig'])), + 'SITENAME' => htmlspecialchars_decode($config['sitename']), + )); // Parse message through template $this->msg = trim($this->template->assign_display('body')); @@ -660,7 +643,7 @@ class messenger { $this->setup_template(); - $this->template->set_style_names(array($path_name), $paths); + $this->template->set_custom_style($path_name, $paths); } } |