From ae1de6c19c6ae2b86417005e08257dd1e1b1cab9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 25 Nov 2009 22:28:42 +0000 Subject: [PATCH] Results from filter chains are now added in template execution time to safe some compilation time --- inc/filters.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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: -- 2.39.5