From 92702bcdad6368af4a9b694499808569946570d0 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Sat, 10 Jul 2021 23:16:26 +0200 Subject: Bugfix: Include correct variable in function scope Fix a bug which was introduced with the commit mentioned below that prevented the "$ITEM['BODY']['TEXT']()" function from returning the pre-parsed body of the item, because the variable was not in scope. See: bf57f3dcba5864b63882c273d25403c28637eeab --- core/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/functions.php b/core/functions.php index 03b3ae5..cefa76a 100644 --- a/core/functions.php +++ b/core/functions.php @@ -109,7 +109,7 @@ function generateItemTemplateData(EntityInterface $Entity): array { ], 'BODY' => [ - 'TEXT' => function() use($Entity) { + 'TEXT' => function() use($preparsed) { return $preparsed; }, 'HTML' => function() use($Entity) { -- cgit v1.2.3