]> git.mxchange.org Git - mailer.git/commitdiff
Results from filter chains are now added in template execution time to safe some...
authorRoland Häder <roland@mxchange.org>
Wed, 25 Nov 2009 22:28:42 +0000 (22:28 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 25 Nov 2009 22:28:42 +0000 (22:28 +0000)
inc/filters.php

index 2b43a8faa82a11eb79c1653352af98eeafd59b56..4153a134631e62dbaeace69cc2ac78d7c9e6f28a 100644 (file)
@@ -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: