From: Roland Häder Date: Wed, 25 Nov 2009 22:28:42 +0000 (+0000) Subject: Results from filter chains are now added in template execution time to safe some... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ae1de6c19c6ae2b86417005e08257dd1e1b1cab9;p=mailer.git Results from filter chains are now added in template execution time to safe some compilation time --- diff --git a/inc/filters.php b/inc/filters.php index 2b43a8faa8..4153a13463 100644 --- a/inc/filters.php +++ b/inc/filters.php @@ -555,8 +555,11 @@ function FILTER_COMPILE_EXPRESSION_CODE ($code) { break; case 'filter': + // Construct replacement + $replacer = "\" . runFilterChain('" . $matches[4][$key] . "') . \""; + // Run the filter and insert result - $code = str_replace($matches[0][$key], runFilterChain($matches[4][$key]), $code); + $code = str_replace($matches[0][$key], $replacer, $code); break; default: