diff options
| author | Paul S. Owen <psotfx@users.sourceforge.net> | 2003-04-19 12:58:37 +0000 |
|---|---|---|
| committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2003-04-19 12:58:37 +0000 |
| commit | 7506d3d9149d64283ce700c4ea4d279915968e2d (patch) | |
| tree | bada06df529cc8be5be6f10b1784b6ab75e879d3 /phpBB/includes/emailer.php | |
| parent | 68deb6cbfd82aab32c348a1ee40ea9dcba096b33 (diff) | |
| download | forums-7506d3d9149d64283ce700c4ea4d279915968e2d.tar forums-7506d3d9149d64283ce700c4ea4d279915968e2d.tar.gz forums-7506d3d9149d64283ce700c4ea4d279915968e2d.tar.bz2 forums-7506d3d9149d64283ce700c4ea4d279915968e2d.tar.xz forums-7506d3d9149d64283ce700c4ea4d279915968e2d.zip | |
Updated topic/forum notification ... untested in live situation ... appeared to work via manual testing
git-svn-id: file:///svn/phpbb/trunk@3888 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/emailer.php')
| -rwxr-xr-x | phpBB/includes/emailer.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/phpBB/includes/emailer.php b/phpBB/includes/emailer.php index a986bdae51..ea55a2ac90 100755 --- a/phpBB/includes/emailer.php +++ b/phpBB/includes/emailer.php @@ -47,19 +47,19 @@ class emailer // If a language variable for non-disclosure is passed, we prepend it to the address. if ($lang_var != '') { - if ( $template_lang == '' ) + if ($template_lang == '') { $template_lang = $config['default_lang']; } $language_file = $phpbb_root_path . 'language/' . $template_lang . '/lang_main.' . $phpEx; - if ( !@file_exists($language_file) ) + if (!@file_exists($language_file)) { $language_file = $phpbb_root_path . 'language/' . $config['default_lang'] . '/lang_main.' . $phpEx; } - if ( @file_exists($language_file) ) + if (@file_exists($language_file)) { include($language_file); $this->address .= $lang[$lang_var]; @@ -132,7 +132,7 @@ class emailer // Send the mail out to the recipients set previously in var $this->address function send() { - global $config, $phpEx, $phpbb_root_path; + global $config, $user, $phpEx, $phpbb_root_path; if (empty($config['email_enable'])) { @@ -163,12 +163,12 @@ class emailer $match = array(); if (preg_match('#^(Subject:(.*?))$#m', $this->msg, $match)) { - $this->subject = (trim($match[2]) != '') ? trim($match[2]) : (($this->subject != '') ? $this->subject : 'No Subject'); + $this->subject = (trim($match[2]) != '') ? trim($match[2]) : (($this->subject != '') ? $this->subject : $user->lang['NO_SUBJECT']); $drop_header .= '[\r\n]*?' . preg_quote($match[1], '#'); } else { - $this->subject = (($this->subject != '') ? $this->subject : 'No Subject'); + $this->subject = (($this->subject != '') ? $this->subject : $user->lang['NO_SUBJECT']); } if (preg_match('#^(Charset:(.*?))$#m', $this->msg, $match)) @@ -229,7 +229,7 @@ function smtpmail($mail_to, $subject, $message, $headers = '') global $config; // Fix any bare linefeeds in the message to make it RFC821 Compliant. - $message = preg_replace("/(?<!\r)\n/si", "\r\n", $message); + $message = preg_replace("#(?<!\r)\n#si", "\r\n", $message); if ($headers != '') { |
