From 2d0f457abdd22e2e4d383a251061d2b2f5e79e4b Mon Sep 17 00:00:00 2001 From: Uwe Tews Date: Sat, 20 Jun 2015 18:25:05 +0200 Subject: [PATCH] Update --- NEW_FEATURES.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/NEW_FEATURES.txt b/NEW_FEATURES.txt index d08c830f..b72b9a33 100644 --- a/NEW_FEATURES.txt +++ b/NEW_FEATURES.txt @@ -15,6 +15,10 @@ Smarty 3.1.28 $smarty->registerFilter() does now accept closures. - $smarty->registerFilter('pre', function($source) {return $source;}); If no optional filter name was specified it gets the default name 'closure'. + If you register multiple closures register each with a unique filter name. + - $smarty->registerFilter('pre', function($source) {return $source;}, 'clousre_1'); + - $smarty->registerFilter('pre', function($source) {return $source;}, 'clousre_2'); + Smarty 3.1.22