]> git.mxchange.org Git - mailer.git/blobdiff - inc/expression-functions.php
Template renamed
[mailer.git] / inc / expression-functions.php
index e1098bf30180d37f6ba6543a3181e5ad7734e0e3..c923b069b9c381d994253f820ce72471fe772eee 100644 (file)
@@ -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 = '<!-- ['.__FUNCTION__.':'.__LINE__.'] Call-back function doTemplate' . $data['callback']  . ' does not exist. //-->';
+       $replacer = '<!-- ['.__FUNCTION__.':'.__LINE__.'] Call-back function ' . $callback  . ' does not exist. //-->';
 
        // 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'])) {