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 2b43a8f..4153a13 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: