- Timestamp:
- May 21, 2013, 7:12:37 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/mail/mailer.php
r409 r410 101 101 EOT; 102 102 103 if($ this->ack) $ret .= <<<EOT1103 if($mailer->ack) $ret .= <<<EOT1 104 104 105 105 Der Besucher bekam dafür eine Bestätigungsmail an die Adresse 106 {$ this->ack_to} .106 {$mailer->ack_to} . 107 107 108 108 EOT1; … … 219 219 elseif(is_string($this->_values[$property])) { 220 220 // make string replacements 221 return preg_replace_callback("/\{([^}]+)\}/", function($match) { 221 $mailer = $this; // PHP 5.3 convenience 222 return preg_replace_callback("/\{([^}]+)\}/", function($match) using($mailer) { 222 223 $identifier = $match[1]; 223 return isset($ this->_values[$identifier])224 ? $ this->_values[$identifier]224 return isset($mailer->_values[$identifier]) 225 ? $mailer->_values[$identifier] 225 226 : "{?$identifier?}"; 226 227 }, $this->_values[$property]);
Note: See TracChangeset
for help on using the changeset viewer.