Changeset 630 for trunk/lib/Email.inc.php
- Timestamp:
- Jun 8, 2018 3:41:16 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Email.inc.php
r628 r630 78 78 ); 79 79 80 // String that contains filename of the template used (for logging). 81 protected $_template_filename; 82 80 83 // String that contains the email body. 81 84 protected $_template; … … 198 201 // This could be a new template, so reset the _template_replaced. 199 202 $this->_template_replaced = null; 203 204 $this->_template_filename = $template; 205 200 206 return true; 201 207 } … … 221 227 // This could be a new template, so reset the _template_replaced. 222 228 $this->_template_replaced = null; 229 230 $this->_template_filename = '(using Email::setString)'; 231 223 232 return true; 224 233 } … … 281 290 if (preg_match('/({[^}]+})/', $final_body, $unreplaced_match)) { 282 291 unset($unreplaced_match[0]); 283 $app->logMsg(sprintf('Cannot get email body. Unreplaced variable s in template:%s', getDump($unreplaced_match)), LOG_ERR, __FILE__, __LINE__);292 $app->logMsg(sprintf('Cannot get email body. Unreplaced variable %s in template %s', getDump($unreplaced_match)), LOG_ERR, __FILE__, __LINE__); 284 293 return false; 285 294 } … … 339 348 if (preg_match('/({[^}]+})/', $final_body, $unreplaced_match)) { 340 349 unset($unreplaced_match[0]); 341 $app->logMsg(sprintf('Cannot send email. Unreplaced variables in template: %s', getDump($unreplaced_match)), LOG_ERR, __FILE__, __LINE__); 342 return false; 350 $app->logMsg(sprintf('Unreplaced variable "%s" in template "%s"', getDump($unreplaced_match), $this->_template_filename), LOG_ERR, __FILE__, __LINE__); 343 351 } 344 352
Note: See TracChangeset
for help on using the changeset viewer.