From 9025d07767b19bb3d0f694c5c39b61446b4917a1 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Fri, 5 May 2017 03:08:54 +0200 Subject: Prevent "$ITEM['BODY']['HTML']()" which is a closure since version 2.1 from calling twice. --- template/standard/html/feed/item_page.php | 6 ++++-- template/standard/html/feed/item_post.php | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'template') diff --git a/template/standard/html/feed/item_page.php b/template/standard/html/feed/item_page.php index 25d7d30..4935282 100644 --- a/template/standard/html/feed/item_page.php +++ b/template/standard/html/feed/item_page.php @@ -6,6 +6,8 @@ # [see documentation] # # # #%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# + +$HTML = $PAGE['BODY']['HTML'](); ?> <?=escapeHTML($PAGE['ATTR']['NAME'])?> @@ -13,10 +15,10 @@ - + + ]]> diff --git a/template/standard/html/feed/item_post.php b/template/standard/html/feed/item_post.php index 7f477d6..30e97ab 100644 --- a/template/standard/html/feed/item_post.php +++ b/template/standard/html/feed/item_post.php @@ -6,6 +6,8 @@ # [see documentation] # # # #%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# + +$HTML = $POST['BODY']['HTML'](); ?> <?=escapeHTML($POST['ATTR']['NAME'])?> @@ -13,10 +15,10 @@ - + + ]]> -- cgit v1.2.3