Diff
476
733
733
email.php
  |
1 | 1 | | <?php |
| |
2 | 2 | | /* |
  |
3 | | - | $Id: email.php 476 2006-03-25 16:08:42Z hpdl $ |
| |
| 3 | + | $Id: email.php 733 2006-08-20 15:32:32Z hpdl $ |
|
4 | 4 | | |
| |
5 | 5 | | osCommerce, Open Source E-Commerce Solutions |
| |
6 | 6 | | http://www.oscommerce.com |
| |
|
|
 |
… |
|
148 | 148 | | */ |
| |
149 | 149 | | |
| |
150 | 150 | | function add_text($text = '') { |
  |
151 | | - | $this->text = tep_convert_linefeeds(array("\r\n", "\n", "\r"), $this->lf, $text); |
| |
| 151 | + | $this->text = str_replace(array("\r\n", "\n", "\r"), $this->lf, $text); |
|
152 | 152 | | } |
| |
153 | 153 | | |
| |
154 | 154 | | /** |
| |
|
|
 |
… |
|
158 | 158 | | */ |
| |
159 | 159 | | |
| |
160 | 160 | | function add_html($html, $text = NULL, $images_dir = NULL) { |
  |
161 | | - | $this->html = tep_convert_linefeeds(array("\r\n", "\n", "\r"), '<br />', $html); |
| |
162 | | - | $this->html_text = tep_convert_linefeeds(array("\r\n", "\n", "\r"), $this->lf, $text); |
| |
| 161 | + | $this->html = str_replace(array("\r\n", "\n", "\r"), '<br />', $html); |
| |
| 162 | + | $this->html_text = str_replace(array("\r\n", "\n", "\r"), $this->lf, $text); |
  |
163 | 163 | | |
| |
164 | 164 | | if (isset($images_dir)) $this->find_html_images($images_dir); |
| |
165 | 165 | | } |
|