diff options
author | Thomas Lange <code@nerdmind.de> | 2021-07-10 23:16:26 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2021-07-10 23:16:26 +0200 |
commit | 92702bcdad6368af4a9b694499808569946570d0 (patch) | |
tree | 89754f14e6d88759cad79b71d830e0e877871414 /core | |
parent | d01543286e4c0d139b86518c3435faa558637b33 (diff) | |
download | blog-92702bcdad6368af4a9b694499808569946570d0.tar.gz blog-92702bcdad6368af4a9b694499808569946570d0.tar.xz blog-92702bcdad6368af4a9b694499808569946570d0.zip |
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
Diffstat (limited to 'core')
-rw-r--r-- | core/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |