X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fexpression-functions.php;h=3aa8026953da4a850835eb16ce2523a65b60e0ba;hb=8202991f32bfb2056e94a11746c0b5308fe4a273;hp=1eee08b4c3f4c45598f498397ffde7c6cd00b4a6;hpb=6d51f1267e9b8884c58f758716b67851b34098da;p=mailer.git diff --git a/inc/expression-functions.php b/inc/expression-functions.php index 1eee08b4c3..3aa8026953 100644 --- a/inc/expression-functions.php +++ b/inc/expression-functions.php @@ -109,10 +109,12 @@ function doExpressionCode ($data) { // Expression call-back function for URLs function doExpressionUrl ($data) { // Do we have JS-mode? - if ($data['callback'] == 'js') $data['mode'] = 1; + if ($data['callback'] == 'js') { + $data['output_mode'] = 1; + } // END - if // Handle an URL here - $replacer = "{DQUOTE} . encodeUrl('" . $data['matches'][4][$data['key']] . "', " . $data['mode'] . ') . {DQUOTE}'; + $replacer = "{DQUOTE} . encodeUrl('" . $data['matches'][4][$data['key']] . "', " . $data['output_mode'] . ') . {DQUOTE}'; // Replace it $code = replaceExpressionCode($data, $replacer);