X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fexpression-functions.php;h=c923b069b9c381d994253f820ce72471fe772eee;hb=d92913f593b52777762672503eb88d7567355ad3;hp=e1098bf30180d37f6ba6543a3181e5ad7734e0e3;hpb=83b9addde2c2c88c714246712eb3b393909fcbd0;p=mailer.git diff --git a/inc/expression-functions.php b/inc/expression-functions.php index e1098bf301..c923b069b9 100644 --- a/inc/expression-functions.php +++ b/inc/expression-functions.php @@ -263,14 +263,17 @@ function doExpressionMessage ($data) { // Expression call-back for template functions function doExpressionTemplate ($data) { + // Construct call-back function name + $callback = 'doTemplate' . $data['callback']; + // Init replacer - $replacer = ''; + $replacer = ''; // Is the function there? - if (function_exists($data['callback'])) { + if (function_exists($callback)) { // Do the replacement //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'template='.$GLOBALS['current_template']); - $replacer = '{DQUOTE} . doTemplate' . $data['callback'] . "('" . $GLOBALS['current_template'] . "', true"; + $replacer = '{DQUOTE} . ' . $callback . "('" . $GLOBALS['current_template'] . "', true"; // Is 'value' set? if (!empty($data['value'])) {