Ignore:
Timestamp:
Apr 23, 2021 11:00:26 PM (3 years ago)
Author:
anonymous
Message:

Add SC_DUMP_JSON flag to dump(). Update comments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Email.inc.php

    r735 r743  
    294294        if (preg_match('/({[^}]+})/', $final_body, $unreplaced_match)) {
    295295            unset($unreplaced_match[0]);
    296             $app->logMsg(sprintf('Cannot get email body. Unreplaced variable %s in template %s', getDump($unreplaced_match)), LOG_ERR, __FILE__, __LINE__);
     296            $app->logMsg(sprintf('Cannot get email body. Unreplaced variable(s) "%s" in template "%s"', getDump($unreplaced_match), $this->_template_filename), LOG_ERR, __FILE__, __LINE__);
    297297            return false;
    298298        }
     
    352352        if (preg_match('/({[^}]+})/', $final_body, $unreplaced_match)) {
    353353            unset($unreplaced_match[0]);
    354             $app->logMsg(sprintf('Unreplaced variable "%s" in template "%s"', getDump($unreplaced_match), $this->_template_filename), LOG_ERR, __FILE__, __LINE__);
     354            $app->logMsg(sprintf('Unreplaced variable(s) "%s" in template "%s"', getDump($unreplaced_match), $this->_template_filename), LOG_ERR, __FILE__, __LINE__);
     355            return false;
    355356        }
    356357
Note: See TracChangeset for help on using the changeset viewer.